OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Automation Rule → Delete

AI-generated

Summary

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.

Links

Discussion