Built in way to delete all related Shop data of a Shopify store that uninstalled the app

I noticed that when I uninstall my app via Gadget or directly on the Shopify store the data still persists. I'm reading from Shopify review process that this must be addressed and data has to be removed that is related to the store that uninstalled the app. So my questions are: 1. Is there a built in way that Gadget can accomplish this or is this a manual build? 2. Is it that important to get app approval?
3 Replies
Simon
Simon4w ago
Must build yourself. But that’s pretty quick. Use deleteMany via api.internal.model.deleteMany. Apply shop id as filter. 2: they don’t have a way to check your db. So no.
webzer33
webzer33OP4w ago
Thank you. Also, is using encrypted string column type good enough to comply with PII protection?
Chocci_Milk
Chocci_Milk4w ago
The information that Simon shared is valid but I believe that the data only needs to be removed once the shop/redact GDPR webhook comes in.

Did you find this page helpful?