{"section":"tutorials","requestedLocale":"en","requestedSlug":"deleting-a-folder-from-cms","locale":"en","slug":"deleting-a-folder-from-cms","path":"docs/en/tutorials/storefront/layout/deleting-a-folder-from-cms.md","branch":"main","content":"> Tutorial valid only for Legacy CMS Stores.\n\nTo delete a CMS folder, follow the steps below:\n\n1. In the VTEX Admin, access **Storefront > Layout > CMS**.\n2. Click on the CMS folder and then on __Sites and Channels__.\n3. Click the website that contains the folder you want to delete and then click the root folder (/).\n4. In the line corresponding to the folder you want to delete, click __delete__.\n\n![erroDeletarPasta2](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/deleting-a-folder-from-cms_1.png)\n\n> ❗ 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.<br /><br />Understand this theme deeper by reading the article [CMS folder structure](/en/docs/tutorials/cms-folder-structure).\n\nIf 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.\n\n![erroDeletarPasta](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/layout/deleting-a-folder-from-cms_2.png)\n\nFor 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."}