Old solution for delete and clean opertions, used before I invented timestamps for opertions. I removed this.