Archives (soft-deletes) a vault. The vault and its items will no longer appear in listings but are retained for audit purposes.
DELETE /api/v1/machine/vault/:vaultId| Header | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Yes | Your API key |
| Parameter | Type | Required | Description |
|---|---|---|---|
vaultId | string | Yes | The unique identifier of the vault to archive |
Success (204 No Content)
No response body is returned on success.
404 Not Found - Vault not found or not accessible
{
"error": {
"code": "vault_not_found",
"message": "The vault with ID \"507f1f77bcf86cd799439011\" was not found or you do not have access to it."
}
}curl -X DELETE "https://r4.dev/api/v1/machine/vault/507f1f77bcf86cd799439011" \
-H "X-API-Key: rk_abc123def456.ghijklmnopqrstuvwxyz"