> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vault の削除

> Vault を削除します。

`DELETE /api/v1/cloud/vaults/{vault_id}`

Vault を削除し、削除確認を返します。

## パスパラメータ

| パラメータ      | 型      | 説明                           |
| ---------- | ------ | ---------------------------- |
| `vault_id` | string | `vault_` プレフィックス付きの Vault ID |

## ヘッダー

| ヘッダー            | 必須 | 説明                  |
| --------------- | -- | ------------------- |
| `Authorization` | はい | `Bearer $QODER_PAT` |

## リクエスト例

```bash theme={null}
curl -X DELETE https://api.qoder.com/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef \
  -H "Authorization: Bearer $QODER_PAT"
```

## レスポンス例

**HTTP 200 OK**

```json theme={null}
{
  "id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "type": "vault_deleted"
}
```

削除の成功は、レスポンスボディの `"type": "vault_deleted"` で示されます。

## エラー

| HTTP | type              | トリガー条件                |
| ---- | ----------------- | --------------------- |
| 401  | `TOKEN_INVALID`   | 認証トークンが欠落または無効        |
| 404  | `not_found_error` | Vault が存在しないまたはアクセス不可 |

エラーエンベロープの詳細については[エラーリファレンス](/ja/cloud-agents/api/conventions/errors)を参照してください。

## 関連項目

<CardGroup cols={2}>
  <Card title="Vaults" icon="key" href="/ja/cloud-agents/vaults">
    シークレットを安全に保存し、Agent Session に注入する。
  </Card>
</CardGroup>
