wp_delete_product
Delete a WooCommerce product by ID, moving it to trash or permanently deleting with force. Requires confirmation to prevent accidental removal.
Instructions
Delete a WooCommerce product (moves to trash by default)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| force | No | ||
| confirm | Yes | Must be true to confirm deletion |