Uninstalling an app without leaving a mess behind
Dear Shopify merchant,
You'd think uninstalling an app removes the app. Often it removes the billing and leaves the rest — snippets, scripts and stray tags scattered through your theme, still loading on every page for a feature that no longer exists.
I find this in almost every store I audit. Dead code from apps someone removed two years ago.
Why it happens
When an app installs, it frequently edits your theme files to add its bits. When it uninstalls, it doesn't always tidy up after itself.
- Snippets left in your theme folder
- Script tags still firing on load
- Leftover divs the app used to fill
- CSS styling elements that aren't there anymore
Each piece is small. A dozen of them, from years of app churn, add up to a slower store and a messier codebase.
A store carries the ghosts of every app it ever installed, unless someone goes in and clears them out.
Uninstalling cleanly
Here's the routine I follow every time.
- Read the vendor's removal notes — some tell you exactly what to delete
- Note what the app added before you remove it
- Uninstall from the admin as normal
- Search the theme for the app's name or code snippets
- Remove the leftovers carefully, testing as you go
- Re-run a speed test to confirm the weight is gone
Always work on a copy of the theme, not the live one. Deleting the wrong snippet can break a page, and you want room to undo.
A regular tidy
Once a year, it's worth walking your theme code looking for orphaned app fragments — the residue of things you've long forgotten. It's dull work, but it keeps your store lean and your load times honest.
If your store's been around a few years and been through a lot of apps, there's almost certainly dead weight in there. If you'd like someone to find and clear it safely, request pricing for a clean-up and I'll tell you what's hiding in your theme.
Best,
Luke Michael
UK-based eCommerce consultant & developer
Got a live version of this on your store?