CLEAR SCOPE. FIXED PRICE. WRITTEN HANDOFF.
TidewellShopify systems repair

SHOPIFY APPS

Shopify app code left in your theme after uninstalling: how to find and remove it

Short answer: uninstalling an app does not always remove what it put in your theme. Shopify's performance help says so directly: uninstalling an app does not automatically remove its code from your theme, and you may need to contact the app developer for removal instructions. The leftovers can slow pages, show broken widgets, or leave stray text. They can be removed, but not blindly.

Why code gets left behind

Apps can add code to your store in more than one way. Some app code is added to your theme files, such as theme.liquid or the templates for products and carts. Shopify's theme update help refers to "automated code changes that an app which you installed has made to your theme files". Whether an app tidies up that code on uninstall depends on the app. A community answer on this topic says the same: some apps clean up and some leave snippets or scripts behind. If an app is old, discontinued or its developer does not answer, leftovers are more likely.

How to tell you have leftovers

Common signs:

  • The store got slower after you removed apps, not faster.
  • A widget, badge, popup or review block still appears, or appears as an empty box.
  • A console error in the browser names a file from an app you removed.
  • The page source still loads scripts from the old app's domain.

Shopify's performance page suggests using your browser's developer tools to see what slows a page down. Open the Network view, reload, and look for requests from services you no longer use. That shows what loads, not where the code lives in your theme.

Step 1: Make a copy first

Work on a copy of your theme, never the live one. In the admin go to Online Store, then Themes, and duplicate the live theme from its menu. (Duplicating is standard Shopify practice; this guide did not open a page about it.) Shopify's own code editor page carries a caution: only edit theme code if you know HTML and CSS and have a basic understanding of Liquid.

Step 2: Write down what apps you used

You need the app names to search for. Check your Apps page in the admin, your emails for app receipts and welcome emails, and your billing history in Shopify. If you cannot remember an app, search the code for words like "pixel", "widget" or "popup".

Step 3: Search the theme for the app

On the copy, open the code editor: from Online Store, open the theme menu and choose Edit code. Shopify's page says the editor can search all theme files. Click the search icon in the left sidebar, type the term, and the results show every instance and which file it is in. Search for:

  • The app name, and the developer name.
  • The domain the script loads from.
  • Words like "pixel", "widget" or "popup" if you do not remember the app.

Look first in the layout file (theme.liquid), near the top and just before the closing body tag, then in the snippets and assets folders for files named after the app, and in product, cart and collection sections for a line that calls a snippet. These are the usual places, based on how themes are laid out, not a Shopify list.

Step 4: Remove carefully

For each hit:

  1. Copy the original code into a text file with a note of the file name and line.
  2. Remove the smallest piece that does the job, such as a script tag or the line that calls the snippet.
  3. If you remove a line that calls a snippet, leave the snippet file until the end and check it is not used anywhere else.
  4. Save, preview the copy, and click through home, collection, product, cart and checkout. Check on a phone.

A missing closing tag or a half removed line can break the layout. Shopify's editor marks errors with a red line under the code, and hovering shows the error. If the preview shows a problem, undo and try again.

Step 5: The safer alternatives

  • Restore a file from its Timeline. Shopify's page says the Timeline view restores one existing file at a time, not a whole theme, and cannot recover deleted files. History is finite, so older versions may not be there. Restoring replaces the whole file, including changes you want to keep, so copy the current contents first.
  • Start from a fresh theme. Install a clean copy of your theme and re-apply your settings. This is easier on a young store than on one with years of changes. If you use a Theme Store theme, Shopify says an updated version can be added to your draft themes for free. Note that code you added yourself may not carry across, since Shopify warns that edits incompatible with a theme update are removed from the updated copy.
  • Ask the app developer. Shopify's performance page tells you to contact them for removal instructions. A community post notes that some developers stop answering once a product is discontinued.

Step 6: Check speed again

After cleanup, test the same pages you tested before, with the same tool each time. One run is not proof.

What not to do

  • Do not delete files by pattern ("everything in snippets that I do not recognise").
  • Do not clean the live theme without a copy.
  • Do not remove tracking or analytics code you still use. Check what each script does first.

When to hire help

If you cannot tell what a block of code does, if the old developer is gone, or if your theme has years of edits from different people, paying for a careful cleanup is cheaper than breaking checkout. Tidewell finds and removes leftover app code from Shopify themes. We work on a copy of your theme, show you what we removed, and agree the price first. Send us the store address, the names of any apps you removed and what you see: tell us what is happening. We never ask for your password.

Questions

Will uninstalling the app always remove its code?

No. Shopify's help says it does not automatically remove its code from your theme.

Can leftover code cost me sales?

It can slow pages or break parts of them. We cannot say by how much for your store.

Is it safe to delete a snippet file I do not recognise?

Not before you search for where it is called. A deleted snippet that is still called can cause an error.

COMMON PROBLEMS

Start with the symptom.

Search cleanup

Spam pages are showing up

Unknown casino or spam pages need evidence, access review and careful cleanup.

Read the checklist →

Email delivery

Shopify emails go to spam

Check sender authentication, DNS and notification headers before changing records.

Read the checklist →

Merchant Center

Misrepresentation suspension

Audit store details, policies and product data before requesting another review.

Read the checklist →