TensorFlow 2.0 Beta is available Learn more

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.