code: def remove_file(file_path):
      
      if path.exists(file_path):
          try:
              rmtree(file_path)
          except Exception:
              print('Unable to remove temporary workdir {}'.format(file_path))
docs: Remove a file from the filesystem.