added repository cleanup to JunkLogic.delete