#GhoSTLabz-products

1 messages ยท Page 1 of 1 (latest)

limber jewel
#

Can you be a bit more specific? Are you just looking to delete all the products on an account?

peak holly
#

yes

#

the problem is products have prices and I'm not sure if the request will go through

#

I simply want to reset my account in test mode, remove all products and prices

limber jewel
#

Do you want to completely reset your account in test mode (deleting all data)? Because if so you can do this through the dashbaord (https://dashboard.stripe.com/test/developers) -> click the "Delete all test data..." button

peak holly
#

problem is its not test data

#

I was adding products and my database crashed, gave 2-3 errors

#

on requests while adding

#

I have probably like 2-3 duplicate products

limber jewel
#

Let's back up for a second here - you mentioned test mode before, but now your saying it's not test data and from your description it sounds like you only want to remove a couple of products, not reset your accuont in test mode. Can you be very specific and say specifically what you're trying to do?

peak holly
#

I'm managing over 1300 products and I tested my script on test mode and it worked, so I decided to run it on production. While inserting products in Production mode, my SQL server crashed and I was unable to retrieve the IDs of the products inserted, I managed to continue from the same ID, but I am not sure if I have duplicates or not

#

the problem is I don't know how to find similar products in 1300 products

limber jewel
#

Gotcha - so ideally you want the ability to find duplicates of your live mode products and delete them, or delete ALL your live mode products and run the script again. Is that correct?

peak holly
#

yes

#

preferring to remove all products in live mode and reinsert them

limber jewel
#

So there isn't a simple way to do this - if the products don't have any prices associated with them you can use the API to delete them yourself.

peak holly
#

the problem is they do

limber jewel
#

Yeah you can delete those prices through the dashboard, but not the API, so that'll be really tedious for you - you can try asking support (https://support.stripe.com/contact) to see if they have any automated tools on their end that may be able to do this, but otherwise your best option may be to find the duplicates and just delete those

peak holly
#

ye I managed to find the duplicates

#

using the CSV Export function

#

I hope support is able to help

#

also I didn't know that I must save price id in database and I have only product ids

#

๐Ÿ˜„

#

feels like a horror movie

#

Anyway, thank you for your time and help!

limber jewel
#

๐Ÿ‘ Hope it's not too painful for you to fix!