Delete Sandbox Content

  • DEL
  • /workspaces
  • /:workspace
  • /sandboxes
  • /:sandbox_id
  • /content
  • /:path

Delete a file or directory from a sandbox

Request

REQUIRED SCOPES
SANDBOX_MANAGE
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspace

Example: "my-company"

sandbox_idrequiredstring
The ID of the sandbox

Example: "sb-1234567890abcdef"

pathrequiredstring
Absolute path to the file or directory to delete

Constraints: Pattern: .*

Example: "buddy/example.txt"

Last modified on Jan 26, 2026

Request example

CURL
curl -X DELETE "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/content/:path" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
STATUS
204 File or directory deleted successfully