Uninstalling Rapid Search will leave some totally harmless code in your store.


Unfortunately, Shopify has no means to automatically remove integrated HTML code upon uninstallation of an app because as soon as the app is uninstalled they revoke access to the store so nothing can be done by the app anymore. The Shopify team has indicated that they are working on improving this process. You can check out Shopify discussion forums for more on this topic.


Please follow the sections in the order below. Some of the files reference each other, so if you delete a snippet before removing the line that renders it, your storefront will show a Liquid error: Could not find asset message until you finish. Removing the code lines first and deleting the files last avoids this entirely.


Clean up page


Go to Online Store > Pages, and search for “rapid search”. Then you can delete the one page appearing:


Clean up renders


We have inserted Rapid Search settings into the theme.liquid to speed up to loading process.

  1. Go to Online Store > Themes > Edit code
  2. Search for theme.liquid and open it
  3. Search for this Liquid code before the </head> and remove it from the file

{% render 'rapid-search-settings' %}





4. Open the main collection liquid of your theme:

    Dawn based themes: sections/main-collection-product-grid.liquid

    Horizon based themes: sections/main-collection.liquid

5.  Search for this Liquid code at the top of the file and remove it:

{% render 'rapid-search-results-template-v2' %}



6. Also open your main search result Liquid file of your theme (Shopify Theme 2.0 themes only):

    Dawn based themes: sections/main-search.liquid

    Horizon based themes: sections/search-results.liquid

7.  Search for this Liquid code at the top of the file and remove it:

{% render 'rapid-search-results-template-v2' %}


Each theme has it's own collection file. Here is a list of the collection files we support and use:

  • sections/main-collection-product-grid.liquid
  • templates/collection.liquid
  • sections/main-collection.liquid
  • sections/collection-template-1.liquid
  • sections/collection-template.liquid
  • sections/static-collection.liquid
  • sections/main-collection-masonry.liquid
  • sections/product-list.liquid
  • sections/main-collection-template.liquid
  • sections/collection.liquid
  • sections/main-collection-products.liquid
  • sections/template-collection.liquid
  • sections/collection-template-boost-pfs-filter.liquid
  • sections/main-collection-product.liquid
  • sections/t-collection.liquid
  • sections/template--collection.liquid
  • sections/template--collection-grid.liquid
  • sections/main-collection-page.liquid
  • sections/collection-default-sidebar.liquid
  • templates/collection.all.liquid
  • sections/gp-collection-default.liquid
  • sections/section-collection.liquid
  • sections/collection-items.liquid
  • sections/s_collection.liquid


And here are the search liquid files we support and use:

  • sections/main-search.liquid
  • sections/search-results.liquid
  • sections/static-search.liquid
  • sections/s_search.liquid



8. (Horizon based themes only) Open blocks/filters.liquid if your theme has this file.

9.  Search for this Liquid code at the top of the file and remove it:

{% assign rps_metafields = shop.metafields['rapid-search'%}{% if content_for_header contains rps_metafields.storeFrontScriptDomain %}
    <script type="application/json" id="rpsFiltersBlockSettings">    
        {{ block.settings | json }}  
    </script>{% endif %}




You have to repeat these points for all your themes, not just the active one.



Clean up the custom search bar 

*Note: if you installed Rapid Search after 2023 November 27, you won't need to do this step as after our update we no longer insert this code.


If you used the old method and manually added the code of the custom search bar to your store, then you clean it up the following way:


  1. Go to Online Store > Themes > Edit code
  2. Search for header.liquid and open it
  3. Search for these Liquid codes and remove them from the file

{% render 'rapid-search-bar', mode: 'desktop' %}


{% render 'rapid-search-bar', mode: 'mobile' %}


You have to repeat these points for all your themes, where you inserted the custom search bar.



Clean up templates


The templates unavoidably left behind are harmless, however they can be removed by doing the following steps to keep things clean.


  1. Go to Online Store > Themes > Edit code
  2. You should see the following files. Delete each one that appears:
    1. templates/page.rapid-search-results-page.liquid
    2. snippets/rapid-search-results-template-v2.liquid
    3. snippets/rapid-search-results-skeleton.liquid
    4. snippets/rapid-search-settings.liquid
    5. snippets/rapid-search-bar.liquid
      (only if you used the custom search bar feature before 2023 November 27)
  3. You have to repeat these points for all your themes, not just the active one


Confirmation

After all of these steps, you can easily make sure nothing is left behind.


    1. Go to Online Store > Themes > Edit code

    2. Search for "rapid-search" inside the files

    3. You should see only one file here: config/settings_data.json. (Every uninstalled app that adds an App Embed block like us will appear here. Harmless, unused setting.)