sandboxes

Deprecated: Use DELETE /v1/drives/:nameOrId. Requires the read-write:drive app scope instead of read-write:sandbox, and drive:delete instead of vercelRun:delete. Emits drive-deleted activity events instead of sandbox-drive-deleted. Delete a drive

Changed on

Deletes a drive by project and name or drive ID. Attached drives cannot be deleted. Stop or replace the session currently using the drive before retrying deletion.

delete/v2/sandboxes/drives/{nameOrId}

Request

  • Base URL
    https://api.vercel.com
  • Auth
    HTTP bearer

Path parameters

nameOrIdstring required

The drive name or ID.

Example:workspace

Query parameters

projectIdstring

The project ID or name associated with the drive. Required unless using a Vercel OIDC token scoped to a project.

Example:prj_abc123
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Response

Example response

{
  "drive": {
    "createdAt": 1750344501629,
    "currentSandboxName": "my-sandbox",
    "currentSessionId": "sbx_123",
    "id": "drive_abc123",
    "maxSizeBytes": 1099511627776,
    "name": "workspace",
    "projectId": "prj_abc123",
    "region": "iad1",
    "updatedAt": 1750344501629
  }
}

Changes