How to Clear Shopify bucket (429 Error) using x++ ?

Dears,

i am using x++ to integrate shopify with D365 F&O, lately i’ve been facing a lot of 429 errors and the bucket is not being cleared after sleeping the code for 10 seconds.

any idea how to clear the shopify bucket or how to make the batch job wait 10 seconds then continue working ?

Regards