# Revoke a share code

> The code stops working at once. Sandboxes already started from it keep their disk.

`DELETE https://api.zavu.dev/v1/sandbox-snapshots/{snapshotId}/share`

The code stops working at once. Sandboxes already started from it keep their disk.

## Parameters

- `snapshotId` (path, string, required): Saved snapshot ID.

## Responses

### 204

Revoked, or it was not shared.

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

Snapshot not found, or it belongs to another project.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X DELETE "https://api.zavu.dev/v1/sandbox-snapshots/snapshot_abc123/share" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

await zavu.sandboxes.snapshots.revokeShare("snapshot_abc123");
```
