Think this should be in an "if delete_files" statement like below