delete_k8s_resource
Deletes a Kubernetes resource from a cluster. This is similar to running kubectl delete.
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": {
"parent": "<parent>",
"resourceType": "<resourceType>",
"name": "<name>"
},
"name": "delete_k8s_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The name of the resource to delete. | |
| dryRun | No | Optional. If true, run in dry-run mode. | |
| parent | Yes | Required. The cluster, which owns this collection of resources. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| cascade | No | Optional. The cascading deletion policy to use. If not specified, 'background' is used. Valid values are 'background', 'foreground', and 'orphan'. | |
| namespace | No | Optional. The namespace of the resource. If not specified, "default" is used. | |
| resourceType | Yes | Required. The type of resource to delete. Kubernetes resource/kind name in singular form, lower case. e.g. "pod", "deployment", "service". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during deletion. | |
| result | No | Result of the delete operation. |