TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.gfile.Remove

View source on GitHub

Deletes the file located at 'filename'.

Aliases:

  • tf.compat.v1.gfile.Remove
tf.gfile.Remove(filename)

Args:

  • filename: string, a filename

Raises:

  • errors.OpError: Propagates any errors reported by the FileSystem API. E.g., NotFoundError if the file does not exist.