rename deletes to deleteDirectory