Changed delete directory

I'm told that changing it to this would delete all files within the
directory, without deleting the directory.