> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/b2b-lock-password-protect/help/remove-leftover-theme-code.md).

# Remove leftover search template

Optionally remove the unused Sami B2B Lock search template after uninstalling the app.

After uninstalling **Sami B2B Lock, Password Protect**, an older theme may still contain the following legacy search template:

`templates/search.samitaLockSearch.liquid`

This file is no longer loaded or used after the app is uninstalled. It does not run any app functionality and does not affect your theme or storefront, so it is safe to leave it in place.

If you want to remove every leftover app file and keep the theme code completely clean, you can delete the template manually by following the steps below.

{% hint style="info" %}
Edit the theme where the Sami B2B Lock app embed was previously enabled. If you enabled the app on more than one theme, check each of those themes separately.
{% endhint %}

## Optional cleanup steps

1. From Shopify Admin, go to **Online Store → Themes**.
2. Find the theme where Sami B2B Lock was enabled, open the **…** menu, and click **Edit code**.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-643b5cb257161f0fd9e2c26c1206c71ac3442471%2Fscreenshot-uninstall-cleanup-edit-code.png?alt=media" alt="The Shopify theme actions menu with Edit code selected."><figcaption><p>Open the Shopify code editor for the theme that previously used the app.</p></figcaption></figure>

3. Open the **Templates** folder and find `search.samitaLockSearch.liquid`.
4. Open the file's actions menu and click **Delete file**. If the file is not present, there is no leftover Sami B2B Lock theme file to remove.

<figure><img src="https://27754559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF4qMYopXntYz9YgUqZSo%2Fuploads%2Fgit-blob-ab85df1ccf989882c8db9d5a8f36461bd6fa1c04%2Fscreenshot-uninstall-cleanup-delete-legacy-search-template.png?alt=media" alt="The Delete file action for the legacy search.samitaLockSearch Liquid template."><figcaption><p>Delete the legacy Sami B2B Lock search template if your theme still contains it.</p></figcaption></figure>

{% hint style="success" %}
**Need support?** Contact <support@samita.io> and include your store URL, theme name, and a screenshot of the code you are unsure about.
{% endhint %}

## Related docs

* [Lock not working](/b2b-lock-password-protect/help/lock-not-working.md)
* [Contact support](/b2b-lock-password-protect/help/contact-support.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/b2b-lock-password-protect/help/remove-leftover-theme-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
