← All notes

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.

  1. Read the vendor's removal notes — some tell you exactly what to delete
  2. Note what the app added before you remove it
  3. Uninstall from the admin as normal
  4. Search the theme for the app's name or code snippets
  5. Remove the leftovers carefully, testing as you go
  6. 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?