Delete Action is a WordPress ability from Ninja Forms — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Delete Action

Destructive
Ninja Forms Forms ninjaforms/delete-action

Permanently delete an action from a form.

Requires the Ninja Forms plugin on WordPress 6.9+ for the Abilities API (all 32 abilities are registered only when the wp_register_ability() function exists, via NF_Abilities_Integration::load_abilities_api() running on plugins_loaded). Every ability is gated by the same ninja_forms_ability_can_manage_forms() permission callback, requiring the caller to hold WordPress's manage_options capability or Ninja Forms' own nf_edit_forms capability.

What it does

This ability permanently removes an action (email, redirect, save, etc.) from a form; the removal cannot be undone. An AI assistant must get explicit confirmation from the user before calling this, and if the action being removed is a save (Record Submission) action, must first warn that future submissions of the form will no longer be saved to the database or visible under Ninja Forms > Submissions. For a temporary toggle rather than permanent removal, ninjaforms/update-action with active: 0 should be used instead.

See it in action

You ask your AI assistant

"Delete the old redirect action (id 230) from form 12 — confirmed, it's no longer needed."

Inputs

Name Type Required Description
form_id integer Yes The numeric ID of the form.
action_id integer Yes The numeric ID of the action to delete.

Returns

An object with a 'success' boolean, the deleted 'action_id', 'form_id', and a 'message'.

Permission

The current user must have WordPress's 'manage_options' capability or Ninja Forms' own 'nf_edit_forms' capability (checked via the shared ninja_forms_ability_can_manage_forms() permission callback).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.