Implemented the deletion of files