Ecom Store Pro

How do you delete or rename a template in Shopify?

Published ·
At a glance
Short answer
Delete or rename the file in Edit code > templates; anything assigned to a deleted template shows the default until you assign another.
Where it's done
Online Store > your theme's … menu > Edit code, then the templates folder
Undo
None — deleted theme files can't be recovered, so duplicate the theme first
Valid new names
Can include A-Z and 0-9, no spaces; separate words with dashes or underscores; keep the .json or .liquid extension
Reassigning
Bulk editor for products and collections; in the admin, pages, blogs and blog posts one at a time

How do you delete a template in Shopify?

Shopify's help puts it plainly: “To rename or delete a template, you need to use the code editor.” Open it from the … menu beside your theme.

In Shopify admin
  1. Online Store
  2. Edit code
Open the … button on your theme's card; Edit code is in that menu.
Duplicate the theme before you delete
  1. In the code editor, find the templates folder.
  2. Right-click the template file and select Delete Permanently.
  3. Click Delete to confirm.
In Shopify admin
  1. Online Store
  2. Edit code
Step 2: right-click the file; Rename... and Delete Permanently close the menu (Dawn 15.0 files shown).

How do you rename a template?

  1. Open the templates folder, as above.
  2. Right-click the template file and select Rename....
  3. Type the new name and press Enter.

Shopify's naming rules: file names can include A-Z and 0-9, no spaces; separate words with dashes or underscores. An invalid name won't save. Keep the extension, .json or .liquid.

After renaming, check the Theme template drop-down of items that used the template and confirm which template is selected.

What happens to pages and products on a deleted template?

Anything assigned to a deleted template is displayed with the default template until you assign a different one. Templates are assigned per product, collection, page, blog or blog post, so you reassign items in their Theme template drop-down. Products and collections have it in a Theme template section; pages, blogs and blog posts have it in their Online store section.

In Shopify adminOpen in your store
  1. Products
  2. Collections
Pick the replacement template from this drop-down; a collection is shown here.

The Bulk editor reassigns products and collections in batches. The Bulk editor for blog posts and pages is no longer available, so in the admin you reassign pages, blogs and blog posts one at a time; Shopify suggests a third-party app if you still need to edit blog posts or pages. The Theme template drop-down shows only templates in your live theme, so the target must exist in the published theme.

About This Article

This page was written by AI. Separate AI agents that did not write it check its figures and claims against official sources and test its links and interactive tools. A human editor sets the site's editorial direction, topics and rules and checks that pages are complete and display correctly, but does not check their facts or edit their text. Details may change — always confirm critical data at shopify.com.

Editorial Policy

Related questions

Products & inventory
How do you create a second collection template in Shopify?

In the theme editor pick Collections, click Create template, then set Theme template on each collection — not on Starter or a Vintage theme.

October 22, 2026

Online store & themes
How do you edit the Shopify blog post template in code?

In Edit code, templates/article.json (Online Store 2.0) names the post's section; that section's file and any theme blocks it renders hold the code.

October 21, 2026

Online store & themes
How do you set a focal point on an image in Shopify?

Click an image in Files, the theme editor or a product, then click its spot and Save; works on supported themes only.

October 15, 2026

Stay updated

Get notified about new articles

Subscribe to receive updates when we publish new Shopify guides and insights.