# tf.train.remove_checkpoint

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/checkpoint_management.py#L442-L467) |

Removes a checkpoint given by `checkpoint_prefix`. (deprecated)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.train.remove_checkpoint`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/train/remove_checkpoint)

<br />

    tf.train.remove_checkpoint(
        checkpoint_prefix, checkpoint_format_version=tf.train.SaverDef.V2,
        meta_graph_suffix='meta'
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file APIs to delete files with this prefix.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `checkpoint_prefix` | The prefix of a V1 or V2 checkpoint. Typically the result of [`Saver.save()`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/train/Saver#save) or that of [`tf.train.latest_checkpoint()`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/train/latest_checkpoint), regardless of sharded/non-sharded or V1/V2. |
| `checkpoint_format_version` | [`SaverDef.CheckpointFormatVersion`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/train/SaverDef#CheckpointFormatVersion), defaults to [`SaverDef.V2`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/train/SaverDef#V2). |
| `meta_graph_suffix` | Suffix for `MetaGraphDef` file. Defaults to 'meta'. |

<br />