Delete Vault
Updated at:
Permanently deletes the specified Vault. This operation cannot be undone.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
DELETE /vaults/{vault_id}
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
vault_id | Yes | string | Vault ID, format vlt_xxx |
Request example
curl -X DELETE "$AGENTSTUDIO_URL/vaults/vlt_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response example
{
"id": "vlt_xxx",
"type": "vault_deleted"
}
Response fields
| Field | Type | Description |
|---|---|---|
id | string | ID of the deleted Vault |
type | string | Always vault_deleted |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |
Is this page helpful?