Tools Catalog / WordPress tools / wp_delete_page

wp_delete_page tool reference for StifLi Flex MCP

Write
Group PagesCapability edit_pages

deletes a page by ID. It can bypass trash with `force=true`.

Description

deletes a page by ID. It can bypass trash with `force=true`.

What it is for

  • Removing temporary or outdated pages.

Example use case

removing a campaign page.

Sample prompt

Delete page ID 154 because the seasonal campaign has ended.

Sample response

{
  "tool": "wp_delete_page",
  "status": "ok",
  "updated": true
}

What does wp_delete_page do?

deletes a page by ID. It can bypass trash with `force=true`.

Does wp_delete_page modify site data?

Yes. It is a write operation and can create, update, or delete data depending on arguments.

Which capability is commonly required?

It usually runs under controls compatible with edit_pages and the active MCP profile.

How should wp_delete_page be used safely?

Enable write confirmations, test in staging first, and keep changelog/rollback enabled.