Tools Catalog / WooCommerce tools / wc_delete_order

wc_delete_order tool reference for StifLi Flex MCP

Write
Group Orders, notes and refundsCapability edit_shop_orders

deletes an order by ID. `force=true` permanently deletes it.

Description

deletes an order by ID. `force=true` permanently deletes it.

What it is for

  • Cleaning test or incorrect orders.

Example use case

removing a test transaction.

Sample prompt

Delete order ID 5501 because it was created for QA testing only.

Sample response

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

What does wc_delete_order do?

deletes an order by ID. `force=true` permanently deletes it.

Does wc_delete_order modify store 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_shop_orders and the active MCP profile.

How should wc_delete_order be used safely?

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