oc_delete
Safely delete OpenShift resources with dry-run, confirmation, and cascade options. Avoid accidental deletions through validation and error handling.
Instructions
Delete OpenShift resources with comprehensive safety checks, validation, and error handling
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "oc_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Delete all resources of the specified type | |
| url | No | URL to YAML manifest defining resources to delete | |
| name | No | Name of the resource to delete | |
| wait | No | Wait for deletion to complete | |
| force | No | Force deletion (bypass finalizers) | |
| dryRun | No | Show what would be deleted without actually deleting | |
| cascade | No | Deletion cascade strategy | background |
| confirm | No | Require explicit confirmation for destructive operations | |
| context | No | OpenShift context to use (optional) | |
| timeout | No | Timeout for deletion operation (e.g., "60s", "5m") | |
| filename | No | Path to YAML file to delete resources from | |
| manifest | No | YAML manifest defining resources to delete | |
| ignore404 | No | Ignore 404 errors if resource does not exist | |
| namespace | No | OpenShift namespace/project | default |
| recursive | No | Process directory recursively | |
| resourceType | No | Type of resource to delete (required if not using manifest/filename) | |
| allNamespaces | No | Delete resources across all namespaces | |
| fieldSelector | No | Delete resources matching field selector | |
| labelSelector | No | Delete resources matching label selector | |
| gracePeriodSeconds | No | Grace period for deletion in seconds |