• Resolved WiglWagl

    (@renemauritz)


    Hi,

    is it possible to delete “ALL Products” in woocommerece via “rest api” with one call? And how?

    Thanks
    best regards
    rene

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @renemauritz,

    It is possible to delete all products in WooCommerce via the REST API, but it cannot be done with a single call. First, you would need to retrieve all product IDs using the /wp-json/wc/v3/products endpoint. Then, you can delete them in batches using the /wp-json/wc/v3/products/batch endpoint by including the product IDs in the delete parameter of the request body. For stores with a large number of products, deleting in smaller batches is recommended to avoid server timeouts or performance issues.

    Since implementing this requires custom coding, we recommend consulting a developer to assist you further. You can find reliable developers on our Customization page or reach out to experts listed on WooExperts.

    Thank you.

    Thread Starter WiglWagl

    (@renemauritz)

    Thanks, perfect!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘rest api delete all products’ is closed to new replies.