please add some comments that explain the ramifications of an error here. e.g., will the user get a clear indication of which files should have been deleted because they're not needed, but an error occurred? is there any easy recourse? Will the error message provide good clues as to why the file deletion failed?