Delete a rule together with its full version history, and drop the links to the Agents that applied it. The Agents themselves are not affected.
A rule that is published cannot be deleted: the call is rejected with a 400 and the message A published rule must be unpublished before it can be deleted. . Unpublish it first by updating the rule with published_version_id: null , so that removing a rule from your Agents is always a deliberate step rather than a side effect of a delete.
Deleting a rule requires the Organization Editor right, i.e. the Owners and Designers of the organization.
npm install @luzmo/nodejs-sdk{}