do the deletions necessary for the file structure too