v14

latestOpenAPI 3.0.32026-08-04377889.4 MB
sandboxes

Delete a drive

Deletes a drive by project and name. Attached drives cannot be deleted. Stop or replace the session currently using the drive before retrying deletion. Drives are in private beta. Register your interest to get access: https://vercel.com/changelog/drives-for-vercel-sandbox-in-private-beta

delete/v2/sandboxes/drives/{name}

Path parameters

namestring required

Name for the drive. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).

Example:workspace

Name for the drive. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores).

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

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

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": {
    "name": "workspace",
    "projectId": "prj_abc123",
    "maxSizeBytes": 107374182400,
    "currentSessionId": "sbx_123",
    "currentSandboxName": "my-sandbox",
    "createdAt": 1750344501629,
    "updatedAt": 1750344501629
  }
}