Missed TensorFlow World? Check out the recap. Learn more

tf.gfile.DeleteRecursively

tf.gfile.DeleteRecursively(dirname)

Defined in tensorflow/python/lib/io/file_io.py.

Deletes everything under dirname recursively.

Args:

  • dirname: string, a path to a directory

Raises:

  • errors.OpError: If the operation fails.