Implement the files deletion logic