vault_delete
Remove secrets from HashiCorp Vault by specifying the storage path to permanently delete sensitive data and maintain security.
Instructions
Delete a secret from Vault at the specified path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to delete the secret from (e.g., 'secret/data/myapp') |
Implementation Reference
- src/index.ts:159-170 (handler)Handler for the vault_delete tool: extracts the path argument, deletes the secret using vaultClient.delete(path), and returns a success message.case "vault_delete": { const { path } = args as { path: string }; await vaultClient.delete(path); return { content: [ { type: "text", text: `Successfully deleted secret at path: ${path}`, }, ], }; }
- src/index.ts:77-90 (registration)Registration of the vault_delete tool in the TOOLS array, defining name, description, and input schema.{ name: "vault_delete", description: "Delete a secret from Vault at the specified path", inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to delete the secret from (e.g., 'secret/data/myapp')", }, }, required: ["path"], }, },
- src/index.ts:80-88 (schema)Input schema for vault_delete tool, requiring a 'path' string.inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to delete the secret from (e.g., 'secret/data/myapp')", }, }, required: ["path"],