Created function for removing files.