Theme Cleanup (Disable All Rules Before Uninstall)
Disable all active lock rules across your themes in one action before uninstalling BSS B2B Lock to restore standard storefront access.
Theme Cleanup is a dedicated admin page located in the app’s left navigation (Theme Cleanup) that gives you a centralized kill switch to answer one critical question: are BSS B2B Lock rules still active anywhere in my themes?, and allows you to deactivate all rules across every theme in a single click.
On This Page
Section titled “On This Page”- Why Theme Cleanup is Critical
- How You Get Pointed to Theme Cleanup
- Understanding Live Protection States
- How to Disable All Rules (Step-by-Step)
- Why Harmless Code Stays Behind (And Full Removal)
- What Theme Cleanup Does and Does Not Do
- Still Need Help?
1. Why Theme Cleanup is Critical
Section titled “1. Why Theme Cleanup is Critical”BSS B2B Lock enforces storefront restrictions (hiding prices, gating collections, locking whole pages) through lightweight Liquid snippets integrated into your Shopify theme.
If you decide to pause usage or uninstall BSS B2B Lock from your Shopify admin while lock rules remain enabled:
- The injected theme code may continue executing on your storefront without the app to govern it.
- Pages, prices, or checkout buttons might remain locked or display unrendered placeholder messages to shoppers.
Theme Cleanup provides the official, fail-safe mechanism to deactivate 100% of lock rules across all themes, restoring open public access before app removal.
2. How You Get Pointed to Theme Cleanup
Section titled “2. How You Get Pointed to Theme Cleanup”To ensure merchants never overlook this step, BSS B2B Lock includes three touchpoints:
-
Left Navigation Menu: The Theme Cleanup tab is permanently accessible in the app’s sidebar.
-
First-Lock Creation Guidance Modal: The very first time you create and save a Lock rule in your store, an onboarding guidance modal appears:
“Lock created successfully! Code is added to your theme for store protection: it’s 100% safe and won’t affect your store’s performance. Whenever rules are no longer needed, you HAVE TO disable all rules in Theme Cleanup page…”
-
Lock Rules List Alert Banner: A top reminder banner appears on the main Lock Rules List table for existing stores, providing a direct 1-click link to the Theme Cleanup screen.
3. Understanding Live Protection States
Section titled “3. Understanding Live Protection States”When you open Theme Cleanup, the app automatically audits your themes and presents one of two live operational states:
| Status State | Banner Header & Message | What It Means | “Disable All Rules” Button |
|---|---|---|---|
| Active Rules Detected | “Your store is protected!” |
At least one lock rule is enabled, or app code is present on draft/non-target themes. | Active (Clickable) |
| Clean / No Active Rules | “No rules are active on your theme” |
All lock rules are disabled and no orphaned code is active on non-target themes. | Disabled (Greyed out) |
Both states emphasize the merchant safeguard:
Heads up: If you ever decide to stop using BSS B2B Lock, you HAVE TO disable all rules across your themes first. This deactivates 100% of lock rules in all themes and restores full standard access to your storefront.
4. How to Disable All Rules (Step-by-Step)
Section titled “4. How to Disable All Rules (Step-by-Step)”Follow these steps when you plan to uninstall the app, migrate themes, or reset all storefront restrictions:
-
In Shopify Admin, open BSS B2B Lock.
-
Click Theme Cleanup in the left navigation menu.
-
Check your status. If rules are active, click the primary button: Disable all rules.
-
A safety confirmation modal appears:
“Are you sure? Disabling all rules deactivates 100% of Lock protections in all themes and opens your store content to everyone.”
-
Click Disable all rules to confirm (or Cancel to keep your protections).
What Happens Behind the Scenes:
Section titled “What Happens Behind the Scenes:”- Disables all rules: The status of every rule in the app is switched from Enabled to Disabled.
- Empties rules in target theme: The app rewrites the snippet on your active/target theme so that no locks are triggered, while leaving core structural templates intact.
- Strips non-target themes: For all duplicate, draft, or secondary themes containing app snippets, the system removes the injected
layout/theme.liquidinclude lines and helper snippets. - Success Toast: A green confirmation alert notifies you: “All rules have been disabled across your themes.” The page refreshes to display the clean state (“No rules are active on your theme”).
5. Why Harmless Code Stays Behind (And Full Removal)
Section titled “5. Why Harmless Code Stays Behind (And Full Removal)”After completing a cleanup:
- A tiny snippet shell may remain in your active theme’s files.
- This remaining code is completely dormant and harmless: it does not execute any checks, makes zero network requests, and has 0% impact on store loading speed or performance.
If you require 100% absolute file removal (e.g. before handing a custom theme off to a client or auditing theme code):
- Simply click the in-app chat support button or contact [email protected].
- Our technical engineers will gladly inspect your theme assets and purge every last file reference for you free of charge within 12 hours.
6. What Theme Cleanup Does and Does Not Do
Section titled “6. What Theme Cleanup Does and Does Not Do”To avoid confusion with other app functions, here is a quick comparison:
| Operation | Does Theme Cleanup Do This? | Clarification / Where Handled |
|---|---|---|
| Deactivate all storefront lock rules | ✅ Yes | Switches all rules to Disabled immediately |
| Restore public access to pages/prices | ✅ Yes | Storefront acts as if no locks were ever created |
| Delete your saved lock rule definitions | ❌ No | Your rule configurations, conditions, and messages are preserved in the app so you can toggle them back on anytime |
| Uninstall the Shopify App | ❌ No | You must still go to Shopify Admin → Apps → BSS B2B Lock → Delete / Uninstall |
| Deactivate App Embed | ❌ No | Turn off the BSS B2B Lock app embed in Shopify Theme Editor if desired |
| Touch Checkout Lock rules | ❌ No | Checkout Lock runs via Shopify Functions. When the app is uninstalled, Shopify Functions are automatically deleted by Shopify |
Still Need Help?
Section titled “Still Need Help?”If you have questions or need assistance configuring BSS B2B Lock, our dedicated support team is here to help.
- In-App Assistance: Click Need help? or use the in-app chat button within BSS B2B Lock.
- Email Support: Contact us at [email protected] with your store URL and specific rule details.