#atul
1 messages · Page 1 of 1 (latest)
Hey! Bit of a broad question! Is there a specific use case you're trying to account for?
In case this could help, you can refer to this link showing how to delete a Stripe Product via API:
https://stripe.com/docs/api/products/delete
I am getting error, its says no price id should be attached
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Otherwise, it's mentioned that Deleting a product is only possible if it has no prices associated with it
https://stripe.com/docs/api/products/delete#:~:text=Deleting a product is only possible if it has no prices associated with it
Thanks for sharing that requestId, juste give me couple of minutes
Using API, you can't delete a product that has a price, you need to use Stripe Dashboard in order to delete it:
https://dashboard.stripe.com/test/products/prod_MWhus0PAabpOnX
You get the product by Id using this API:
https://stripe.com/docs/api/products/retrieve
Then you can list all pirces of that product using this API:
https://stripe.com/docs/api/prices/list#list_prices-product