Delete WooCommerce Product
woocommerce_delete_productDelete a WooCommerce product by ID, moving it to trash or permanently deleting with force=true.
Instructions
Delete a product. By default this moves the product to the trash (recoverable); set force=true to permanently delete it.
Args:
product_id (number, required)
force (boolean): permanently delete if true (default: false, moves to trash)
Returns: Confirmation with the deleted product's id, name, and status.
Error Handling:
Returns "Error: Resource not found (404)" if product_id doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | If true, permanently delete instead of moving to trash (default: false) | |
| product_id | Yes | The numeric WooCommerce product ID to delete |