in reply to Deleting files in the first folder

Check to see if unlink failed.

See also: Basic debugging checklist