Actions138
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Label Actions
- Media Actions
- Message Actions
- Observability Actions
- Presence Actions
- Profile Actions
- Session Actions
- Status Actions
- System Actions
- Template Actions
- Webhook Actions
Automation Rule → Delete
AI-generatedSummary
Deletes an automation rule by its ID for the specified OpenWA session. Automation rules run on the gateway and answer matching messages even when the workflow is not running. Returns { success: true } on success.
Inputs
- sessionId (required) — The session in which the automation rule exists, selected from the list or via expression.
- ruleId (required) — The ID of the automation rule to delete, as returned by Create or List operations.
Output shape
{ success: true } on successful deletion.
On failure, returns an error with details from the OpenWA gateway.
Examples
Example 1: Deleting an out-of-hours acknowledgement rule
Set Session Name or ID to the active WhatsApp session, and Rule ID to the ID of the rule to delete.