Apps rules delete

Open in

Use the ably apps rules delete command to delete a channel rule from an Ably application.

Synopsis

ably apps rules delete <rule-name-or-id> [options]

Arguments

rule-name-or-id
Required

The name or ID of the channel rule to delete.

Options

--app

The app ID to delete the rule from. Uses the currently selected app if not specified.

--force | -f

Skip the confirmation prompt and delete the rule immediately. Required when using --json.

--json

Output results as compact JSON. Mutually exclusive with --pretty-json.

--pretty-json

Output results in formatted JSON. Mutually exclusive with --json.

--verbose | -v

Enable verbose logging. Can be combined with --json or --pretty-json.

Examples

Delete a channel rule by name:

ably apps rules delete chat

Delete a channel rule for a specific app:

ably apps rules delete "events-rule" --app "My App"

Delete a channel rule without a confirmation prompt:

ably apps rules delete "notifications-rule" --force

Delete a channel rule and output the result in JSON format:

ably apps rules delete "chat-rule" --json

Delete a channel rule and output the result in formatted JSON:

ably apps rules delete "chat-rule" --pretty-json

See also

  • Apps — Explore all ably apps commands.
  • CLI reference — Full list of available commands.