Delete resource
k8s_delete_resourceDelete a Kubernetes resource by specifying its apiVersion, kind, and name, with optional namespace and context targeting. Use confirmation and propagation policy controls for safe removal.
Instructions
Delete any object by apiVersion and kind.
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": {
"api_version": "<api_version>",
"kind": "<kind>",
"name": "<name>"
},
"name": "k8s_delete_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| confirm | No | Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt. | |
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| namespace | No | ||
| api_version | Yes | ||
| propagation_policy | No | Background |