Closed dixitdeepak closed 2 months ago
We don't need to subscribe the app uninstall webhook, As Shopify sends the shop/redact web hook on app uninstall https://shopify.dev/docs/apps/build/privacy-law-compliance#shop-redact
48 hours after a store owner uninstalls your app, Shopify sends a [payload](https://shopify.dev/docs/apps/build/privacy-law-compliance#shop-redact-payload) on the shop/redact topic. This webhook provides the store's shop_id and shop_domain so that you can erase data for that store from your database.
Subscribe the app uninstalled webhook, when merchant uninstall app from shop, shopify will trigger app/uninstalled webhook. Listen the app/uninstall webhook and expire the app association from shop.
https://shopify.dev/api/admin-rest/2022-04/resources/webhook#event-topics-app-uninstalled