Should my app delete the web pixel that it installed if the app is uninstalled?

I am developing an app that also includes the web pixel extension. If the merchant uninstalls the app, should I be running the webPixelDelete mutation when the uninstall webhook fires? Or is it removed automatically as part of the uninstall process?

Hi Danh11,

When a merchant uninstalls an app, all associated data and extensions, including web pixel extensions, should be removed automatically as part of the uninstall process. However, it’s a good practice to listen for the app/uninstalled webhook and run any cleanup operations like the webPixelDelete mutation to ensure all associated data is deleted.

Hope this helps!

I see! Running the cleanup operations on the uninstall webhook was the original plan, so I’ll continue it as a safe measure. Thanks :slightly_smiling_face: