- 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.
- Online Store
- Edit code
- In the code editor, find the templates folder.
- Right-click the template file and select Delete Permanently.
- Click Delete to confirm.
- Online Store
- Edit code
How do you rename a template?
- Open the templates folder, as above.
- Right-click the template file and select Rename....
- 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.
- Products
- Collections
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.
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