How to Delete Templates in Shopify (Without Breaking Your Store)

How to Delete Templates in Shopify (Without Breaking Your Store)

Introduction

If you’ve been customizing your Shopify theme for a while, you might have accumulated a few unused templates: product layouts, page designs, or test variations that no longer serve a purpose. Deleting these can help declutter your theme and speed up your store. However, it’s important to know which templates are safe to delete and which ones are essential for your store’s core functionality.

In this guide, we’ll walk you through everything you need to know, from identifying default templates that should stay intact,  and also you will learn how to delete templates in shopify step by step inside your Shopify code editor. You’ll also learn what happens when you delete a template and how to prevent layout errors after cleanup.

  • Templates determine the overall layout, styling, and content presentation for different page types, ensuring visual consistency across your store.
  • You can customize templates by adding, removing, or rearranging sections and blocks within the Shopify theme editor.
  • Creating a custom template for a specific page, like a product or collection, allows you to apply a unique design to it. This is useful for products with different features or for pages that require a different layout from the default.
  • You can assign templates to individual pages, and changes you make to a template will appear on all pages using it.

You can customize templates by adding, removing, or rearranging sections and blocks within the Shopify Theme Editor.

Default templates, Shopify Theme must have

Several essential templates are required for your Shopify store to function properly. These templates control important pages such as the homepage, product pages, collections, and the cart. Deleting any of these templates can cause parts of your store to stop working or display incorrectly. Therefore, it’s important not to remove or modify these templates unless you fully understand their purpose and impact on the store’s layout and functionality. Some of these are listed below.

  1. Index.json
  2. 404.json
  3. Blog.json
  4. Article.json
  5. Product.json
  6. Collection.json
  7. List-collection.json
  8. Cart.json
  9. gift_card.liquid
  10. Page.json
  11. page.contact.json
  12. Password.json
  13. Search.json

Customer templates that should not be deleted are listed below.

  1. Account.json
  2. Activate_account.json
  3. Addresses.json
  4. Login.json
  5. Order.json
  6. Register.json
  7. reset_password.json

 

Things to know before deleting a template

Before deleting a template, back up your data, determine if any pages are currently using it, and consider the impact on those pages, as they will revert to a default template. Deleting a template is often irreversible, and all associated content and data may be permanently removed. Always confirm with your team or administrator before deleting.


How to Delete a Template in Shopify step by step

To delete a Shopify template, navigate to Online Store > Themes, click Actions on your theme, and select Edit code. From there, find and open the Templates folder, and click the template you want to delete. Before you delete, it's a good practice to back up your theme and check that the template isn't in use on any live pages. Follow these steps to delete a template from your Shopify Store.

Step 1: Navigate to Online Store > Themes > Edit code.

How to Delete Templates in Shopify (Without Breaking Your Store)

Step 2: Scroll down to the templates folder.

How to Delete Templates in Shopify (Without Breaking Your Store)

Step 3: Select the template from the list that you want to delete.

How to Delete Templates in Shopify (Without Breaking Your Store)

Step 4: Right-click on it and click the Delete permanently button.

How to Delete Templates in Shopify (Without Breaking Your Store)

Step 5: Confirm the delete process in the pop-up window.

How to Delete Templates in Shopify (Without Breaking Your Store)

Step 6: Make sure to back up your data before deleting the template.

Also Read: How to Remove Checkout Bag in Shopify (Step-by-Step Guide)

Conclusion

Deleting unused templates in Shopify is a quick way to simplify your theme structure and maintain faster performance, but it’s not something to do blindly. Always back up your theme, make sure no active pages are using the file, and never remove default templates (like product.json or index.json). A clean, well-organized theme makes editing, testing, and scaling your Shopify store much smoother in the long run. You learn a complete guide on how to delete templates in shopify step by step.

For a complete design and optimization overhaul, consider exploring Shopify Custom Theme Development Services or our Shopify Website Maintenance Support.

 

Frequently Asked Questions

No. These default templates are required for your store to function properly. Deleting them may break layouts or cause your site to stop displaying pages correctly.

The page will automatically revert to the theme’s default template. However, any specific layout or customization tied to that deleted template will be lost.

Go to your Online Store → Pages or Products section in the Shopify admin. Open the page or product and check the “Theme Template” dropdown in the right-hand sidebar.

Only if you’ve backed up your theme or can access a previous version. Otherwise, once deleted, templates cannot be recovered unless recreated manually.

Yes, removing unused templates can slightly improve load times and reduce clutter in your theme’s codebase, especially if your theme has dozens of redundant templates.

No. Templates can only be deleted through Edit Code under your theme’s settings, not from the visual Theme Editor.

Comments(0)
You don't have any comments yet

Are You Looking for a Shopify Expert?

We design, develop, optimize, and scale high-converting Shopify stores.

Get in touch
Let's Connect
Shopify Plus eCommerce Development Agency ecomx agency

Looking for a Trusted Ecommerce & Shopify Plus Agency?

We design, develop, optimize, and scale high converting Shopify Ecommerce stores that drive sales.

Get in Touch
Ecomx shopify plus agency about us page Yasin

Looking for a Shopify expert to handle a small task? Shopify Migration Experts Agency Ecomx shopify plus agency

Let’s talk about your project

Shopify Custom Theme Development Services Live Chat