k8s_delete_resource
Delete any Kubernetes resource type—pod, deployment, service, and more—with optional force and grace period settings for immediate or graceful removal.
Instructions
Delete a Kubernetes resource. Supports all common resource types (pod, deployment, service, configmap, secret, statefulset, daemonset, job, cronjob, ingress, pvc, pv, namespace, serviceaccount, networkpolicy, hpa). Set force=True for immediate deletion (grace_period=0).
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": {
"context": "<context>",
"resource_type": "<resource_type>",
"name": "<name>"
},
"name": "k8s_delete_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| context | Yes | ||
| namespace | No | ||
| grace_period | No | ||
| resource_type | Yes |