harness_delete
Delete a Harness resource by type or Harness URL, with identifiers extracted automatically. Use only for destructive removals, as deletion cannot be undone.
Instructions
Delete a Harness resource. You can pass a Harness URL to auto-extract identifiers. This is destructive and cannot be undone.
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": {
"resource_type": "<resource_type>"
},
"name": "harness_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A Harness UI URL — org, project, resource type, ID, and supported resource_scope are extracted automatically | |
| org_id | No | Org identifier. Required unless a Harness URL is passed (no configured default). | |
| params | No | Additional identifiers for nested resources (e.g. pipeline_id for triggers/input sets, environment_id for infrastructure). | |
| confirm | No | User-approved confirmation for the destructive operation when the client cannot show a prompt. Set only with user intent; never overrides a user's decline. | |
| project_id | No | Project identifier. Required for project-scoped resources unless a Harness URL is passed (no configured default). | |
| resource_id | No | The identifier of the resource to delete. Optional when url contains the resource ID. | |
| resource_type | Yes | The type of resource to delete | |
| resource_scope | No | account|org|project. Omit for the resource's default scope. Never use account to skip a known org/project. Auto-detected from url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||