Deleting a page template in Shopify removes a custom layout file (e.g., page.custom.liquid) from your theme’s code, so pages assigned to that template can no longer use it. You must have access to the theme’s code editor—typically as a store owner or developer—and ensure you’re editing the correct theme (live or a duplicate). This action is irreversible without a backup, so always download the theme file first. No extra tools are required beyond your Shopify admin and basic code awareness.
What You’ll Need
- Shopify admin access (owner or staff account with theme editing permissions)
- A backup of your theme (recommended before editing code)
- Identify the exact template file name (e.g.,
page.special.liquid) - Access to the current theme’s code editor
Step-by-Step
- Log in to your Shopify admin and go to Online Store > Themes.
- Find the theme you want to edit (e.g., your live theme) and click the Actions dropdown menu next to it.
- Select Edit code from the dropdown. This opens the theme code editor in a new tab.
- In the left-hand sidebar under Templates, scroll down and look for the page template file you want to delete. Page templates always end with
.liquidand often includepage.at the start (e.g.,page.contact.liquid,page.about.liquid, or custom names likepage.promo.liquid). - Before deleting, click the file to open it in the editor. Briefly review its content to confirm it’s the correct template. If you’re unsure, skip to Tips below.
- Click the ... (three dots) menu to the right of the file name in the sidebar, then select Delete template.
- Confirm deletion by clicking Delete in the pop-up window. The file will vanish from the Templates list.
- Go to Online Store > Pages in your admin. Check any pages that used the deleted template. If you see a Template suffix field set to the deleted template, update it to
defaultor another available template to avoid errors. - Optionally, click Actions > Save in the code editor (though Shopify auto-saves changes when you delete a template).
Common Mistakes
- Deleting the wrong template—always double-check the file name and preview content before confirming deletion.
- Editing the wrong theme (e.g., a draft or unassigned theme) instead of the live theme. Verify the active theme’s status before editing.
- Forgetting to update pages that used the template, which can cause 404 errors or broken layout rendering on those pages.
- Deleting a template while it’s still assigned to a page, leading to missing content. Always reassign or delete pages first.
- Assuming all templates in Sections are page templates—only files in the Templates folder ending with
.liquidare actual page templates.
Tips
- Clone your theme first: In Online Store > Themes, click Actions > Duplicate before editing. This lets you test deletions safely.
- Use the search bar at the top of the code editor to quickly find templates by typing
page.or the template name. - Keep template names descriptive (e.g.,
page.landing-page.liquidinstead ofpage.p1.liquid) to avoid future confusion. - After deletion, test your site in an incognito window to ensure pages still load correctly and no broken templates appear.
- Some themes (like Dawn) hide unused templates in the Templates list but still allow deletion. If a template is missing, check if it’s still referenced in a page’s settings.
Troubleshooting
If the template doesn’t delete, or pages break afterward:
- Check permissions: Ensure your account has Themes permission enabled. Go to Settings > Accounts and access > Staff accounts to verify.
- Clear browser cache: Sometimes the code editor doesn’t refresh. Try a hard refresh (Ctrl+Shift+R or Cmd+Shift+R) or use a different browser.
- Template still appears: If the file doesn’t vanish, it may be locked by an app. Go to Apps > Manage apps and temporarily disable any theme or page builder apps (e.g., PageFly, Shogun).
- Page shows error : If a page now displays , go to that page’s editor ( Online Store > Pages > click the page), scroll to Theme templates , and change the template to page.default .
- Cannot find the template: It may have been deleted previously or never existed. Confirm the file name with your developer or theme documentation. Check the Templates folder in the code editor—some templates are hidden unless you add one manually.
- Accidentally deleted: Restore from backup: Go to Online Store > Themes > Actions > Revert to draft (if you duplicated first), or re-upload the full theme backup via Actions > Upload theme.
Frequently Asked Questions
Can I delete a page template if it’s still assigned to a page?
Yes, Shopify allows it, but the page will break and show an error. Always reassign the page to another template first.
Will deleting a page template affect my store’s SEO?
No—if you reassign the page to a valid template and keep the URL unchanged, SEO is unaffected. Google indexes the URL, not the template name.
Do I need to delete the template from all themes?
No. Only delete it from the theme where it’s used. If you use multiple themes (e.g., a mobile-optimized one), repeat the steps for each.
Can I recover a deleted page template?
Not directly in Shopify. You must restore from a theme backup (downloaded earlier) or re-upload the full theme file from your computer or Shopify Theme Store purchase.
Why can’t I see the delete option for a template?
The template may be built into the theme and protected. Custom templates (created by you or a developer) allow deletion. Preinstalled templates like page.default.liquid can’t be deleted—only renamed or duplicated first.
Does deleting a template remove the page content?
No. The page content (title, body text, images) stays in Shopify. Only the layout and structure defined by the template are removed. If the template is gone, the page may not display correctly until you assign a new one.