#reid-product-prices

1 messages · Page 1 of 1 (latest)

coarse sundial
#

you have to archive the Prices under the Product to delete it

main spade
#

I tried that, and I get the same error.

#

There is one price on the product. I archived it and tried deleting it through the dashboard, and through the script that I originally came across this issue.

coarse sundial
#

do you have a list of requests for archiving Prices and archiving the Products, can you share those here?

main spade
#

Sure. Heres the most recent req to archive the price: req_OA0aBxYZMHAAFd

#

This was done through the dashboard

#

here's one for deleting the product: req_VczTWWojjWrAsf

lime quarry
#

Hi 👋 I'm taking over for @coarse sundial . Give me a minute to catch up.

main spade
#

Hi!

lime quarry
#

So looking at your latest product deletion request and the associated product I can see it has a price associated with it.

#

Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.

#

The next question is, how do I get rid of the price...

main spade
#

Right. I also tried deleting the price, but it wont let me since its been used in a transaction. This seems like a good safeguard for live mode, but... constraining in test mode.

lime quarry
#

Yeah that makes sense. The tough part here is balancing making testing more flexible vs. being an accurate representation of how live mode will behave.

main spade
#

I just found the 'delete all test data' button, which is what the script I was running does anyway. Its part of our seed script. We wipe our db, and the stripe account and build it back up. I should be unblocked after this

lime quarry
#

Okay yeah I thought you were trying to just delete some specific data. That button is kind of the nuclear option

main spade
#

haha, yeah. I wipe the account pretty regularly, but always with that script. Did not know the nuclear option existed. Thanks for your time!