E2B icon

E2B

Run commands and manage E2B sandboxes and snapshots

Volume → Delete

AI-generated

Summary

Delete a persistent E2B volume by its ID.

Inputs

  • volumeId (required) — The unique ID of the persistent volume to delete.
  • timeoutSeconds — Timeout in seconds for the API request.

Output shape

a single record

Returns an object containing volumeId and deleted (a boolean indicating true if deleted, or false if the volume was not found).

Examples

Example 1: Delete an existing persistent volume

Set Volume ID to "vol_abc123".

Links

Discussion