Generate the files and directories to delete correctly