# tf.delete_session_tensor

<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/ops/session_ops.py#L223-L244) |

Delete the tensor for the given tensor handle.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.delete_session_tensor(
        handle, name=None
    )

This is EXPERIMENTAL and subject to change.

Delete the tensor of a given tensor handle. The tensor is produced
in a previous run() and stored in the state of the session.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `handle` | The string representation of a persistent tensor handle. |
| `name` | Optional name prefix for the return tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A pair of graph elements. The first is a placeholder for feeding a tensor handle and the second is a deletion operation. ||

<br />