Delete Policy Version
lexq_versions_deleteDelete a DRAFT, ACTIVE, or EXPIRED version. A version that is live, in an A/B test (P-017), or targeted by a pending scheduled deployment (P-043) cannot be deleted. Deleting a DRAFT removes it. Deleting a published (ACTIVE or EXPIRED) version keeps it as ARCHIVED instead: it no longer appears in lexq_versions_list and cannot be deployed, executed, simulated, replayed, cloned, or used in a dry run (P-008). lexq_versions_get still returns it by ID, and deleting it again does nothing.
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": {
"groupId": "<groupId>",
"versionId": "<versionId>"
},
"name": "lexq_versions_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Policy group ID | |
| versionId | Yes | Version ID |