curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"path": "string"
}
Delete a file or directory from the sandbox
File or directory deleted
DELETE
/
api
/
v1
/
sandbox
/
{id}
/
files
curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"path": "string"
}
Path parameters
string (uuid)
required
Sandbox identifier
Request body
JSON body of typeDeleteFileRequest.
Response
object
boolean
required
string
required
Path that was deleted
Status codes
| Code | Meaning |
|---|---|
200 | File or directory deleted |
404 | Sandbox not found |
curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
--header 'Content-Type: application/json' \
--data '{}'
{
"success": true,
"path": "string"
}
Last modified on August 31, 2026