# tf.compat.v1.gfile.DeleteRecursively

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/lib/io/file_io.py#L653-L663) |

Deletes everything under dirname recursively.

    tf.compat.v1.gfile.DeleteRecursively(
        dirname
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dirname` | string, a path to a directory |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| [`errors.OpError`](https://www.tensorflow.org/api_docs/python/tf/errors/OpError) | If the operation fails. |

<br />