删除卷
DELETE
/sandbox/v1/volumes/{volumeID}● 支持请求参数
volumeIDstring必填path: Id of the team volume, the
volumeIDreturned by createVolume or listVolumes.
返回
204
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl -X DELETE https://api.deepraxis.com/sandbox/v1/volumes/sbv_123 \
-H "X-API-Key: $PRAXIS_API_KEY"Python
import requests
api_key = "$PRAXIS_API_KEY"
# Call /sandbox/v1 directly over HTTP.
resp = requests.delete(
"https://api.deepraxis.com/sandbox/v1/volumes/sbv_123",
headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)TypeScript
const apiKey = "$PRAXIS_API_KEY";
// Call /sandbox/v1 directly over HTTP.
const resp = await fetch(`https://api.deepraxis.com/sandbox/v1/volumes/sbv_123`, {
method: "DELETE",
headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());响应示例 204
(204 No Content:成功,无响应体)响应
HTTP 204
Successfully deleted a team volume
未声明响应体。