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

Destructive
Ninja Forms Forms ninjaforms/delete-submission

Delete a submission, trashing it by default or permanently removing it.

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 removes a submission, moving it to trash by default (recoverable only via AI-assistant or programmatic database access for 30 days, with no UI restore option, before WordPress permanently purges it) or immediately hard-deleting it when permanent is set to true. An AI assistant must get explicit user confirmation before calling this. This ability's MCP tool exposure also defaults to non-public (ninjaforms_mcp_public_delete_submission defaults to false).

See it in action

You ask your AI assistant

"Delete submission 305 — yes, that's confirmed, just move it to trash for now."

Inputs

Name Type Required Description
submission_id integer Yes The numeric ID of the submission.
permanent boolean No true for a hard delete; false (default) moves the submission to trash.

Returns

An object with a 'success' boolean, the 'submission_id', 'form_id', a 'permanent' flag, 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.