Delete Form 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 Form

Destructive
Ninja Forms Forms ninjaforms/delete-form

Permanently delete a form and all of its fields, actions, and submissions.

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 a form along with every field, action, and submission attached to it — the operation cannot be undone. Because of the blast radius (all historical submission data goes with it), an AI assistant is expected to get explicit, positive confirmation from the user before calling this rather than acting on an ambiguous or implied request. The ability is also marked non-public for MCP tool discovery by default, meaning it isn't automatically exposed as an MCP tool unless a site explicitly opts in via the ninjaforms_mcp_public_delete_form filter.

See it in action

You ask your AI assistant

"Delete form 12 — yes, I've confirmed, go ahead and remove it along with its submissions."

Inputs

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

Returns

An object with a 'success' boolean, the deleted '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.