delete_slx
Soft-delete an SLX from a workspace by tombstoning its row. Removes the SLX and lets the system clean up related runbooks and SLIs.
Instructions
Soft-delete an SLX from the workspace via the v4 short-name endpoint.
Uses DELETE /api/v4/workspaces/{ws}/slxs/{slx_short_name}, which
tombstones the SLX row (deleted_by / deleted_at) and lets the
corestate reconcile loop clean up the corresponding runbook and SLI
rows. This is the same endpoint the UI hits, so behaviour matches what
users see in the platform.
Deletion is workspace-global — it is not scoped to a Git branch.
The v4 endpoint tombstones the SLX row in PAPI; there is no per-branch
variant. Callers previously wired to a Git-oriented delete path should
stop passing branch / commit_message (both removed) and rely on
the workspace-scoped soft delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slx_name | Yes | Short name of the SLX to delete (e.g. 'k8s-pod-health'). | |
| workspace_name | Yes | The workspace to delete from (e.g. 't-oncall'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |