delete_endpoint
Delete an endpoint and its targets, immediately or by staging the removal in the line's draft with commitMode "draft" and draftRevision (returns {draft} instead of deleting right away). An immediate delete publishes a new revision without the endpoint and returns {deleted: true, endpointId}, but the line's prior revision still has it, so list_config_revisions can find that revision and rollback_config can republish over the deletion. Errors when lineKey/endpointId is missing, the line or endpoint doesn't exist, the draft revision is stale, or removing the endpoint would leave an active line with no endpoints. Requires edit access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineKey | Yes | The line key, e.g. "v1". | |
| commitMode | No | Defaults to publish. Draft writes require draftRevision. | |
| endpointId | Yes | The endpoint UUID. | |
| draftRevision | No | Current line draft revision, required for draft writes. |