Modified delete to remove files inside a directory