Delete a vault and all credentials under it. Deletion cannot be undone.
Endpoint
DELETE /vaults/{vault_id}
Paths are relative to the Base URL. Send Authorization: Bearer $DASHSCOPE_API_KEY on every request. For authentication details, see Authentication.
Request parameters
| Field | Required | Type | Description |
|---|---|---|---|
vault_id | Yes | string | Vault ID. Treat it as an opaque ID |
Request example
Response example
Response fields
200, returns a delete envelope:
| Field | Type | Description |
|---|---|---|
id | string | ID of the deleted vault |
object | string | Vault deletion result object type, fixed as vault.deleted |
deleted | boolean | Whether deletion succeeded, true on success |
404.
Error codes
For the error response structure, see Errors.
| HTTP status | Error type / code | Solution |
|---|---|---|
401 | authentication_error / invalid_api_key | Send a valid Authorization: Bearer $DASHSCOPE_API_KEY header |
404 | not_found_error / not_found_error | The vault does not exist, is deleted, or belongs to another workspace |
500 | server_error / server_error | Retry later. If it keeps failing, submit a ticket with x-request-id |