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

vault_idstringRequired

Vault ID, format vlt_xxx

Request example

curl -X DELETE "$AGENTSTUDIO_URL/vaults/vlt_xxx" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

idstring

ID of the deleted Vault

typestring

Always vault_deleted

Response example

{
  "id": "vlt_xxx",
  "type": "vault_deleted"
}

Error codes

HTTP statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.