#hendr1x_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1367866261530349658
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is me trying to delete a product
Hello
What happens when you try to delete the price first? What error did you see?
I didn't recieve any errors when I delete the prices. Just the error above when I try to delete the product
unless there is a flaw in how I am deleting the prices
I can dig into it
Before I spent a few hours debugging I wanted to be sure that I can delete the product once the prices are removed?
Yeah double check if you've successfully deleted the price. Also, Can you share the product / price IDs?
Before I spent a few hours debugging I wanted to be sure that I can delete the product once the prices are removed?
Good question. I think you can if the product/price hasn't been used for a subscription / payment
Well thats a pretty big if
Ah you can only archive a price
what I suppose to do once they have been used?
nvm
You can update the price from active -> true to false
https://docs.stripe.com/api/prices/update#update_price-active
ok...yeah I see in my notes that you don't even offer an api delete price endpoint
so, if I mark active = false it will let me delete the prroduct
Everything I am doing is with the api
Gotcha. There are no workarounds to delete a price if it's been used though. So using the API versus the dashboard doesnt' matter much
So the products are just stuck in the account forever?
Unfortunately, yeah..
If this is in test mode - you can delete all test mode data to clear out the objects but in live mode that's not possible.
The reason behind this is to keep the associated object history for customers who have purchased the products you're trying to delete.
Ok. Thank you for your help.
NP! Sorry for the confusion earlier as I thought you were trying to delete an unused product