added the deletion of the files