How to delete unused page templates to de-clutter my theme/workflow?

Hi all,

Good day. I would like to de-clutter by deleting unused page templates. My workflow is starting to get messy and I would like to keep it clean. Please see screenshot below:

Please help.

Thanks,

Outdoor Armory

1 Like

Hi @outdoorarmory , thanks for reaching out.

To address the issue, I recommend you take a look at this video on how to delete a template in Shopify 2.0, which provides you detailed steps.

I hope my information is helpful to you, and please feel free to feedback.

Esther

2 Likes

HI @outdoorarmory

For example, if you have a product template like this:
:backhand_index_pointing_right: Template Example

After creating the template, there will be a corresponding file in the code. You can search for the name of the template to locate it:
:backhand_index_pointing_right: Search for Template

Once found, select the file and delete it:
:backhand_index_pointing_right: Delete Template File

This will effectively remove the template.

I hope this helps

Best,

Daisy

1 Like

Hello @outdoorarmory

Good day! Cleaning up unused page templates in Shopify is a great way to keep your workflow organized. Here’s how you can delete unused templates:

Steps to Delete Unused Page Templates:1. Access the Theme Code Editor:

  • Go to your Shopify Admin.
  • Navigate to Online Store > Themes.
  • Click Actions on your current theme and select Edit code.
  1. Locate Templates:

    • In the left-hand sidebar, find the Templates folder.
    • Review the list of .liquid files. Common template types include page.custom-template.liquid or product.custom-template.liquid.
  2. Identify Unused Templates:

    • Check which templates are no longer assigned to pages, products, or collections. You can verify this by going to the respective sections (e.g., Pages, Products, Collections) in your Shopify Admin and checking their template settings.
  3. Backup Your Theme:

    • Before making changes, create a backup of your theme. Duplicate your theme by clicking Actions > Duplicate. This ensures you have a restore point if needed.
  4. Delete Unused Templates:

    • In the Templates folder, click on the unused template file.
    • Delete the file by clicking the trash bin icon at the top of the editor.
  5. Test Your Store:

    • After deletion, navigate through your store to ensure that no pages or sections are affected by the removal.
1 Like

Thank you @EstherBui ! Worked like a charm!

that worked! thanks so much