Menu
Feedback
Start here
Tutorials


Tutorials
Layout
Deleting a folder from CMS
1 min read

Tutorial valid only for Legacy CMS Stores.

To delete a CMS folder, follow the steps below:

  1. In the VTEX Admin, access Storefront > Layout > CMS.
  2. Click on the CMS folder and then on Sites and Channels.
  3. Click the website that contains the folder you want to delete and then click the root folder (/).
  4. In the line corresponding to the folder you want to delete, click delete.

{"base64":"  ","img":{"width":958,"height":722,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":146710,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/deleting-a-folder-from-cms_1.png"}}

Some folders are required. Your store will not function properly without them. Others are important, so it's not a good idea to delete them.

Understand this theme deeper by reading the article CMS folder structure.

If a folder contains other folders, you must delete all internal folders before deleting the more external one. Otherwise, the system will return the error "Object reference not set to an instance of an object", as in the image below.

{"base64":"  ","img":{"width":511,"height":156,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":4237,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/deleting-a-folder-from-cms_2.png"}}

For example, if you want to delete folder A, and within it are folders A1 and A2, first delete folders A1 and A2, and then delete folder A.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Defining Window Displays
« Previous
Develop the front-end for the list feature in your store
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback