Should i use ProductDeleteAsync or not?

Should i use ProductDeleteAsync or not?

SqueeDee
Shopify Partner
2 0 0

The productDelete mutation documentation says

To avoid these timeout errors, you can instead use the asynchronousProductDeleteAsyncmutation.

The productDeleteAsync mutation is marked as deprecated and says:

Use productDelete instead.

Which one should be used?

 

API version 2024-7

Reply 1 (1)

tedtate
Shopify Staff
18 2 3

👋 Hi @SqueeDee ,

 

Thanks for pointing out that error in the docs, I will make sure to get that fixed.

 

Moving forward you should use `productDelete` which now has a flag `synchronous:` to allow you to run it async if necessary (defaults to running synchronously). There have also been performance optimizations made so its much less likely that it will timeout.