R4

Archive Vault

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

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour API key

Path Parameters

ParameterTypeRequiredDescription
vaultIdstringYesThe unique identifier of the vault to archive

Response

Success (204 No Content)

No response body is returned on success.

Error Responses

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."
  }
}

Example Request

curl -X DELETE "https://r4.dev/api/v1/machine/vault/507f1f77bcf86cd799439011" \
  -H "X-API-Key: rk_abc123def456.ghijklmnopqrstuvwxyz"

Notes

  • This is a soft-delete operation. The vault is marked as archived but not permanently deleted.
  • Archived vaults and their items are retained for audit and compliance purposes.
  • This action is audit-logged for CMMC AU-2 / SOC 2 CC7.2 compliance.

Use Cases

  • Environment teardown: Archive vaults when decommissioning environments
  • Cleanup: Remove unused vaults from active listings
  • Rotation: Archive old vaults after migrating secrets to new ones