How to Remove robots.txt File from Your Shopify Store
You can’t fully delete Shopify’s robots.txt but you can edit, override, or reset it completely. Here’s exactly how to do it safely, step by step, with no guesswork.
We get this question from Shopify store owners a lot — “How do I remove the robots.txt file from my Shopify store?” Usually, something has gone wrong. A page is being blocked that shouldn’t be, Google Search Console is throwing a warning, or an SEO audit flagged an issue.
The good news: it’s fixable. The tricky part: Shopify handles robots.txt differently from most other platforms. You can’t just upload a new file and call it done. You need to work with something called the robots.txt.liquid template and we’re going to walk you through exactly how to do that.
2021Year Shopify allowed robots.txt editing
AutoShopify generates robots.txt automatically for every store
⚠️Wrong rules can block your entire store from Google
FreeGoogle Search Console robots.txt tester — always use it
🤖 What Is robots.txt and Why Does It Matter for Shopify?
A robots.txt file is a small text file that sits at the root of your website. Its job is simple: it tells search engine crawlers (like Google’s Googlebot) which pages they are allowed to visit, and which ones they should skip.
Think of it like a sign at the entrance of your store. It says things like: “Hey Google, you can look at our products and collections but please don’t go into the checkout area or admin section.”
📡
How robots.txt Works — At a Glance
Every Shopify store has a robots.txt file automatically, you can see it right now by visiting yourstore.com/robots.txt. Shopify’s default robots.txt is actually well set up for most stores. It blocks pages like your admin, cart, and checkout from being crawled (no point Google indexing your checkout page).
💡Important: Blocking a page in robots.txt tells Google not to crawl it but it doesn’t guarantee Google won’t index it. If Google has seen links to a blocked page before, it may still appear in search results. To fully hide a page, you need both robots.txt disallow AND a noindex meta tag.
❓ Can You Actually Remove robots.txt from Shopify?
This is where Shopify is different from other platforms like WordPress. You cannot permanently delete Shopify’s robots.txt file. Shopify generates it automatically in the background even if you delete everything you’ve customised, it just reverts to its built-in defaults.
What you can do is one of these three things:
What You Want to Do
How to Do It
Difficulty
Recommended?
Remove a specific blocked rule (e.g. unblock /policies/)
Edit robots.txt.liquid with Liquid code
Medium
✅ Yes
Reset everything back to default
Delete the robots.txt.liquid file from theme
Easy
✅ Yes
Rewrite the entire file from scratch
Replace liquid with plain text rules
Hard
❌ Not recommended
Block everything from Google
Add Disallow: / for all bots
Easy
❌ Never do this
🚨Warning: Shopify’s Support team will not help you edit robots.txt.liquid, it’s officially classified as an unsupported customisation. If you make a mistake, you could accidentally block your entire store from Google, causing a complete loss of organic traffic. Always back up your file before making any changes.
📋 When Should You Edit or Remove a Rule?
Most Shopify stores don’t need to touch robots.txt at all. Shopify’s defaults are solid. But there are legitimate situations where editing makes sense:
✓A specific page that should be indexed (like /policies/ or a custom landing page) is being blocked by a default Shopify rule
✓You want to block AI crawlers like GPTBot or CCBot from scraping your content
✓You have faceted navigation URLs (filter parameters like ?color=red) creating thousands of low-quality pages that waste your crawl budget
✓You want to add a custom sitemap URL for a multi-language or multi-region store
✓A previous developer added bad custom rules that you now need to clean up
!You want to remove all rules — only do this if you fully understand the SEO implications
✗Your whole site or important pages have been accidentally blocked — this needs fixing immediately
🛒 Shopify SEO Experts
Not Sure if Your Shopify Store Has robots.txt Issues?
Our Shopify team will audit your store’s crawl settings, robots.txt file, and indexation health — and fix anything that’s hurting your rankings.
Here’s the full walkthrough. We’ll go through each step clearly with visuals so you know exactly what you’re looking at on screen.
1
Log Into Your Shopify Admin
Go to yourstore.myshopify.com/admin and log in with your store credentials. You need to be the store owner or have a staff account with theme editing permissions.
🏠 Shopify Admin
2
Go to Online Store → Themes
In the left sidebar, click Online Store. A dropdown will appear, click Themes. This will take you to your theme management page where all your published and draft themes are listed.
🏠 Admin › 🌐 Online Store › 🎨 Themes
3
Click the Three Dots (…) → Edit Code
On your current (published) theme, click the three-dot menu (…) button. A small dropdown will appear. Click Edit code. This opens Shopify’s built-in code editor where you can see all your theme files.
⚠️Important: Always make sure you’re editing your published theme (the one marked “Current theme”). Changes here go live immediately when you save.
4
Find the robots.txt.liquid File in the Templates Folder
In the code editor, look at the left sidebar. You’ll see folders like Layout, Templates, Sections, Snippets, Assets, etc. Click on Templates to expand it. Look for a file called robots.txt.liquid.
💡If you don’t see robots.txt.liquid in the Templates folder, don’t worry, it just means your store is currently using Shopify’s automatic default. You’ll need to create it first (see Step 5).
5
If the File Doesn’t Exist — Create It First
If robots.txt.liquid is not in your Templates folder, you need to create it. This is required before you can customise anything. Here’s how:
In the code editor left sidebar, click “Add a new template”
In the dropdown that appears, select “robots” from the list
Click “Create template”
Shopify will automatically populate the file with its default Liquid template code
6
Make Your Changes and Save
Now you’re inside the robots.txt.liquid file. This is where you make your edits. We’ll cover specific changes in the sections below. Once you’ve made your changes, click the Save button in the top right corner of the code editor.
✅Changes go live immediately after you save. Search engine crawlers won’t see the changes instantly, they re-visit your robots.txt file on their own schedule, typically within a few days. You can speed this up by requesting a re-crawl in Google Search Console.
🔧 How to Remove a Specific Rule (e.g. Unblock /policies/)
One of the most common things people want to do is remove one specific rule from Shopify’s default robots.txt, for example, allowing Google to crawl the /policies/ pages.
Shopify’s default rules block /policies/ from being crawled. But if you want those pages in Google’s index, you need to remove that specific Disallow directive. Here’s how:
⚠️The right way to do this is using Liquid’s unless condition, NOT by deleting lines from the default output. Using unless keeps Shopify’s auto-update mechanism intact.
The Code to Remove the /policies/ Block
Replace the default output loop with this modified version. The highlighted part is what’s new:
robots.txt.liquid
{%- comment -%} Loop through default Shopify groups {%- endcomment -%}{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}{%- comment -%} REMOVE a rule: skip the Disallow for /policies/ Remove the unless/endunless to put it back{%- endcomment -%}{%- unless rule.directive == 'Disallow'and rule.value == '/policies/'-%}
{{- rule -}}
{%- endunless -%}{% endfor %}{%- if group.sitemap != blank -%}
{{- group.sitemap -}}
{%- endif -%}{% endfor %}
This tells Shopify: “Output all default rules as normal EXCEPT skip the rule that says Disallow: /policies/.” The /policies/ pages will now be accessible to Googlebot.
To Remove a Different Rule
Just change the rule.value to whatever path you want to unblock. For example, to unblock the /search page:
If things have gone wrong and you just want to wipe all your custom changes and go back to Shopify’s original robots.txt, this is the easiest fix of all, and it’s completely safe.
🗑️
Delete the robots.txt.liquid File
Deleting the robots.txt.liquid file does not remove robots.txt from your store. Shopify immediately falls back to its built-in defaults. Here’s how:
First, save a copy of your current robots.txt.liquid somewhere (a text file, Google Doc, etc.), just in case
In the code editor, find robots.txt.liquid in the Templates folder
Right-click the file → select “Delete permanently” from the dropdown
Click “Delete” to confirm
Shopify will automatically go back to the default robots.txt — no further action needed
🔍 Shopify + Digital Marketing
Need Someone to Handle Your Shopify SEO Properly?
From robots.txt fixes to full technical SEO audits, our team manages Shopify stores for e-commerce brands who want real, lasting results in Google.
After saving any changes to your robots.txt file, you should always test it. Don’t skip this step, it only takes 2 minutes and can save you from major SEO problems.
Method 1 — View It in Your Browser (Quick Check)
Simply visit yourstore.com/robots.txt in your browser. You’ll see the raw text of your current robots.txt file. Check that your changes are showing up correctly and that nothing unexpected has appeared.
Method 2 — Use Google Search Console (Best Method)
In the left sidebar, go to Settings → Crawling → robots.txt
Click “Open report” to see your current robots.txt as Google sees it
Enter a specific URL you want to test in the URL tester box
Click Test — Google will tell you if that URL is allowed or blocked
✅Pro tip: After fixing any robots.txt issues, go to Google Search Console → URL Inspection → enter the previously-blocked URL → click “Request Indexing.” This tells Google to come back and re-crawl the page sooner rather than waiting for its normal schedule.
⚠️ Common Mistakes That Kill Your SEO
We’ve seen all of these happen in real Shopify stores. Please don’t do any of these:
✗Adding “Disallow: /” for User-agent: * — This blocks your ENTIRE store from Google. Your store disappears from search results within days. We’ve seen this cause 100% loss of organic traffic.
✗Replacing the Liquid template with plain text — Shopify can no longer auto-update your robots.txt rules with platform improvements. Rules go stale and create SEO issues over time.
✗Editing robots.txt.liquid without a backup — Always save a copy of the original file before making any changes. Shopify cannot recover deleted content.
✗Not testing after changes — Always check your-store.com/robots.txt and use Google Search Console’s URL tester after every edit.
!Removing the /admin Disallow rule — Admin pages can’t be accessed by bots anyway, but removing this rule signals poor SEO hygiene and could expose sensitive URL structures.
!Using third-party Cloudflare rules alongside robots.txt.liquid — These can conflict with each other. Remove any Cloudflare-based robots.txt overrides before editing the Liquid template.
“If you’re unsure about any robots.txt change, don’t make it. The cost of getting it wrong — losing all your organic traffic — far outweighs the benefit of any single rule change.”
— Shark Labs Global, Shopify SEO Team
❓ FAQ — Quick Answers
Can I remove robots.txt completely from Shopify? +
No — Shopify generates robots.txt automatically for every store and you cannot fully delete it. However, if you delete the robots.txt.liquid file from your theme, Shopify automatically reverts to its built-in default settings, which is effectively the same as “removing” any custom changes you made.
Where is the robots.txt file located in Shopify? +
The customisable template is at Online Store → Themes → Edit Code → Templates → robots.txt.liquid. The actual live robots.txt file is accessible at yourstore.com/robots.txt — this is the file Google actually reads.
Why does Google Search Console say my page is “indexed, though blocked by robots.txt”? +
This is actually normal for most Shopify stores and usually not a problem. It means Google found a link to that page (from another website or your own sitemap) and added it to its index, even though robots.txt tells it not to crawl there. If it’s an admin or checkout page — that’s fine and expected. If it’s a product or collection page — that needs fixing. Check if that page path is accidentally blocked in your robots.txt.
Does Shopify Support help with robots.txt editing? +
No. Shopify officially classifies robots.txt.liquid editing as an “unsupported customisation.” Their support team will not help with these changes. If you need professional help, you can hire a Shopify Partner or an experienced SEO agency — like our team at Shark Labs Global.
Will removing robots.txt rules help my Shopify SEO? +
Only if a specific rule is incorrectly blocking a page that should be indexed. Shopify’s default rules are generally good for SEO — they prevent thin content pages (like cart, checkout, and admin pages) from wasting your crawl budget. Removing rules without a clear reason can actually hurt your SEO by allowing low-quality pages into Google’s index.
How long does it take for Google to see robots.txt changes? +
Your changes go live the moment you save the file. However, Google typically re-fetches robots.txt files every 1 to 7 days. To request a faster update, go to Google Search Console → URL Inspection → enter your homepage URL → click “Request Indexing.” This signals Google to re-crawl your site sooner.
robots.txt, crawl budget, indexation health, page speed, structured data — we take care of all the technical stuff so your store ranks higher and gets more traffic.
We’ve set up, audited, and optimised hundreds of Shopify stores across e-commerce, retail, and direct-to-consumer brands. The technical SEO knowledge in this guide comes from hands-on experience — including fixing broken robots.txt configurations that were silently killing traffic for store owners who didn’t know what was wrong. About our team →