#yoshie902a - Delete a Price
1 messages · Page 1 of 1 (latest)
You can't delete Prices using the API, you can only update them and set active to false to archive them: https://stripe.com/docs/api/prices/update#update_price-active
Yep, you can delete Plans: https://stripe.com/docs/api/plans/delete
And yes, Prices are the replacement for Plans.
why can't you delete price?
Prices are part of the record of the transactions that happened on your account. If you no longer want to use a Price going forward archiving it as described above is similar to deleting it, but without removing important historical data.
what if there is no data? for exampl me just running tests and making and deletng thm
Test mode is designed to mimic live mode, so we mimic the Price behavior in both places.
That said, you can clear out all of your test mode data using a button in the Dashboard if you want.
I know but its a real hassle to clear the data, takes too long
The Delete all test data... button is on this page: https://dashboard.stripe.com/test/developers
No.
through the api?
There is no way to delete a Price via the API.
I can flag that request internally, yeah.
thanks