#Techy Geek

1 messages · Page 1 of 1 (latest)

cinder oasisBOT
late vortex
cinder oasisBOT
frosty herald
#

Hi! I'm taking over my colleague. Please, let me know if you have any other questions.

vestal flax
#

I couldn't find out any straightforward way to look for orphan products, prices, etc that are not being used in any subscription. I want to delete them using cron-job every week from my app.

I am also looking for customers which are not involved in any subscription and can also be deleted in another cron-job.

Can you help me with that? Is there any way we can achieve this?

frosty herald
#

Good question. I am not sure there's a straghtforward way to do that. You might need to list all Subscriptions and save all Products/Prices/Customers that are used. And then list each of the object type and delete the ones that are not on your "used" list.

vestal flax
#

Okay, thanks for letting me know

frosty herald
#

I double checked and I don't see an easier way unfortunately.

#

Please, let me know if you have any other questions.