delete-secret
Deletes a secret from a specified Infisical environment and folder path. Call it once per environment to remove a secret everywhere.
Instructions
Delete a secret from one environment and folder. To remove a secret everywhere, call it once per environment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"environmentSlug": "<environmentSlug>",
"secretName": "<secretName>"
},
"name": "delete-secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. | |
| secretName | Yes | The name of the secret to delete | |
| secretPath | No | The folder path, such as "/" for the root or "/backend/api" for a nested folder. Defaults to "/". | |
| environmentSlug | Yes | The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works. |