> ## Documentation Index
> Fetch the complete documentation index at: https://turnkey-0e7c1f5b-renovate-npm-js-yaml-vulnerability.mintlify.site/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.

export const TvcBetaCallout = () => <Warning>
    Turnkey Verifiable Cloud is currently in Private Beta.{" "}
    <a href="https://www.turnkey.com/turnkey-verifiable-cloud#waitlist">
      Join the waitlist
    </a>{" "}
    to request access. Once our team reaches out, share your organization ID to
    get enabled. If you already have a dedicated Slack channel with us, reach out
    there directly. Once enabled, you will see a new "Verifiable Cloud" section
    appear in the top-level navigation.
  </Warning>;

<TvcBetaCallout />

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-renovate-npm-js-yaml-vulnerability/69T_erHK3v9lmNBK/assets/files/tvc_deployment_direct_traffic.png?fit=max&auto=format&n=69T_erHK3v9lmNBK&q=85&s=ba7829681b0682c54c3a8ad2ab1face3" 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-renovate-npm-js-yaml-vulnerability/69T_erHK3v9lmNBK/assets/files/tvc_deployment_delete.png?fit=max&auto=format&n=69T_erHK3v9lmNBK&q=85&s=4524663bdf776f8119671ae935739510" 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-renovate-npm-js-yaml-vulnerability/69T_erHK3v9lmNBK/assets/files/tvc_deployment_restore.png?fit=max&auto=format&n=69T_erHK3v9lmNBK&q=85&s=48f33516601045a40323255675c98cfc" 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
```
