> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turnkey.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing TVC apps and deployments

> Direct traffic, delete, and restore TVC apps and deployments.

<Warning>
  Turnkey Verifiable Cloud is currently in Private Beta. [Join the waitlist](https://www.turnkey.com/turnkey-verifiable-cloud#waitlist) to request access.
</Warning>

This guide covers how to direct traffic to a specific deployment, delete a deployment or app, and restore a deleted deployment.

For creating and approving your first deployment, see the [TVC quickstart](/features/verifiable-cloud/quickstart).

## Direct traffic to a deployment

Each TVC app has one live deployment at a time. To switch traffic to a different deployment, use the dashboard or the CLI.

**Dashboard**: Click into your deployment on the [TVC dashboard](https://app.turnkey.com/dashboard/v2/tvc) and click **Direct Traffic**, then confirm with **Make live**.

<Frame>
  <img src="https://mintcdn.com/turnkey-0e7c1f5b/vHFnksgKyWHap_qx/assets/files/tvc_deployment_direct_traffic.png?fit=max&auto=format&n=vHFnksgKyWHap_qx&q=85&s=d67518481f046e91bc80d5de71246597" alt="Direct Traffic button on deployment page" width="704" height="206" data-path="assets/files/tvc_deployment_direct_traffic.png" />
</Frame>

**CLI**:

```
tvc app set-live-deploy --deploy-id <DEPLOYMENT_UUID>
```

On success:

```
Set-live-deploy accepted.

Deployment ID: <DEPLOYMENT_UUID>
Activity ID: <ACTIVITY_UUID>
Activity Status: Active
```

## Delete a deployment

Deleting a deployment tears down its deployed resources so that the enclave instances are stopped and cleaned up. The deployment record remains visible in the dashboard.

**Dashboard**: Click into your app, find the deployment, and click **Delete deployment**.

<Frame>
  <img src="https://mintcdn.com/turnkey-0e7c1f5b/vHFnksgKyWHap_qx/assets/files/tvc_deployment_delete.png?fit=max&auto=format&n=vHFnksgKyWHap_qx&q=85&s=cc70646bfd9b9fc4ef992fbb0c7faaab" alt="Delete button on deployment page" width="704" height="206" data-path="assets/files/tvc_deployment_delete.png" />
</Frame>

**CLI**:

```
tvc deploy delete --deploy-id <DEPLOYMENT_UUID>
```

On success:

```
Deployment delete accepted; deployment is marked for deletion.

Deployment ID: <DEPLOYMENT_UUID>
Activity ID: <ACTIVITY_UUID>
Activity Status: Active
```

## Delete an app

Deleting an app tears down all of its child deployments. As with deployment deletion, the resources are cleaned up but the records remain visible.

**Dashboard**: Click into your app on the [TVC dashboard](https://app.turnkey.com/dashboard/v2/tvc) and click **Delete app**.

**CLI**:

```
tvc app delete --app-id <APP_UUID>
```

On success:

```
App delete accepted.
App and deployments marked for deletion.

App ID: <APP_UUID>
Activity ID: <ACTIVITY_UUID>
Activity Status: Active
```

## Restore a deployment

A deployment marked for deletion can be restored before its resources are fully cleaned up.

**Dashboard**: Click into your app, find the deployment, and click **Restore deployment**.

<Frame>
  <img src="https://mintcdn.com/turnkey-0e7c1f5b/vHFnksgKyWHap_qx/assets/files/tvc_deployment_restore.png?fit=max&auto=format&n=vHFnksgKyWHap_qx&q=85&s=5fc333667fa1f588c715a314b87cd9f3" alt="Restore button on deployment page" width="704" height="201" data-path="assets/files/tvc_deployment_restore.png" />
</Frame>

**CLI**:

```
tvc deploy restore --deploy-id <DEPLOYMENT_UUID>
```

On success:

```
Deployment restore accepted; deployment is no longer marked for deletion.

Deployment ID: <DEPLOYMENT_UUID>
Activity ID: <ACTIVITY_UUID>
Activity Status: Completed
```
