harness_delete
Permanently delete a Harness resource by passing its URL to auto-extract identifiers. Confirmation is required to complete this irreversible removal.
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. Required for org- and project-scoped resources unless a Harness URL is passed. This session has no configured default (common in hosted/multi-user HTTP) — pass the current org_id on the first call. Do not omit it. | |
| 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. Required for project-scoped resources unless a Harness URL is passed. This session has no configured default (common in hosted/multi-user HTTP) — pass the current project_id on the first call. Do not omit it. | |
| 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: account-level resources only — do not use account to skip a known org/project. org: org-level (org_id). project: org+project. Omit to use the resource's default scope. 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 |