pruning and refactoring deletes