Token error on deleting SmartCollection from app/uninstall webhook

DmitryDanilson
New Member
1 0 0

Hello,

I had sent a related support request - but was redirected here.
The issue is simple: I need to remove hidden SmartCollections that were created during setup once the app is going to be deleted. The best bet of implementing "app/uninstall" webhook doesn't work: the token is already destroyed at that moment - so my API requests fail with error about incorrect token.

I see that there are already several similar issues - but not the same. Hidden SmartCollections should be safely automatically removed as there should be no user customization - so the point from https://community.shopify.com/c/Shopify-APIs-SDKs/Remove-page-before-application-uninstalled/m-p/129... "it's not a bug, it's a feature" (which is a valid point for pages, I agree) is not applicable here:)

0 Likes