harness_delete
Delete any supported Harness resource by specifying its type and identifier. Optionally pass a Harness URL to auto-extract identifiers. This operation is permanent.
Instructions
Delete a Harness resource. You can pass a Harness URL to auto-extract identifiers. This is destructive and cannot be undone.
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 | Organization identifier (overrides default) | |
| params | No | Additional identifiers for nested resources (e.g. pipeline_id for triggers/input sets, environment_id for infrastructure). | |
| confirm | No | Set to true to confirm the destructive operation. Required when the client cannot surface a confirmation prompt — e.g. managed MCP that does not advertise elicitation, or an elicitation that fails at runtime. Does NOT override an explicit decline from a client that completed an elicitation prompt — a user's decline is authoritative. | |
| project_id | No | Project identifier (overrides 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 | Scope for the operation. account: omit org/project (e.g. /v1/templates). org: org only. project: org+project. Auto-detected from url when present. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | Whether the resource was successfully deleted | |
| details | No | Optional API response payload (e.g. template-service delete body) | |
| resource_id | Yes | The ID of the deleted resource | |
| resource_type | Yes | The type of resource that was deleted | |
| version_label | No | Deleted template version label, when applicable |