modify delete-directory