[{"data":1,"prerenderedAt":261},["ShallowReactive",2],{"rule-empty-folders":3},{"id":4,"title":5,"body":6,"breadcrumb":224,"coderail":231,"dateModified":250,"datePublished":250,"description":251,"extension":252,"meta":253,"navigation":254,"next":250,"path":255,"prev":250,"schemaType":256,"seo":257,"stem":258,"wide":259,"__hash__":260},"docs\u002Frules\u002Fempty-folders.md","Empty folders found",{"type":7,"value":8,"toc":214},"minimark",[9,16,54,59,78,82,85,89,105,109,124,128,186,190],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"empty-folders",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GTM folders that contain no tags, triggers, or variables",[20,37,38,41],{},[13,39,40],{},"effect"," — Leftover folders add workspace clutter without affecting tag firing",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,69,70,73,74,77],{},"The rule filters ",[27,63,64],{},"data.folders"," for any entry where ",[27,67,68],{},"totalItems === 0",". Every folder with a zero item count is included in the finding. There are no exclusions — the rule does not distinguish freshly created folders from long-abandoned ones. Each flagged folder appears in the issue payload with its ",[27,71,72],{},"folderId"," and ",[27,75,76],{},"folderName",".",[55,79,81],{"id":80},"why-it-matters","Why it matters",[10,83,84],{},"Empty folders are organizational debt, not a functional problem. They survive tag migrations and platform changes where content moved out but the folder itself was never deleted. In workspaces that use folder structure as a navigation convention, empty folders create false signals about what is implemented. Cleanup takes minutes and carries no risk — deleting an empty folder cannot affect tag firing.",[55,86,88],{"id":87},"example","Before \u002F after",[90,91,92,99],"compare",{},[93,94,96],"compare-col",{"label":95},"Before — flagged",[10,97,98],{},"Container has three folders — \"Social\", \"Remarketing\", \"Legacy CRM\" — but \"Legacy CRM\" contains no tags, triggers, or variables. The folder survived a CRM migration six months ago.",[93,100,102],{"label":101},"After — cleaned",[10,103,104],{},"\"Legacy CRM\" folder deleted. The remaining two folders reflect actual workspace structure. No tags, triggers, or variables were affected.",[55,106,108],{"id":107},"remediation","Remediation",[110,111,112,115,118,121],"ol",{},[20,113,114],{},"Open the GTM workspace and navigate to each flagged folder.",[20,116,117],{},"Confirm the folder contains no tags, triggers, or variables.",[20,119,120],{},"Delete the folder. Empty folders have no downstream dependencies — deletion cannot affect tag firing.",[20,122,123],{},"Publish the container to record the cleanup in version history.",[55,125,127],{"id":126},"metadata","Metadata",[129,130,133,134,139,133,143,147,133,150,154,133,157,160,133,163,167,133,170,174,133,180,183],"dl",{"className":131},[132],"spec-list","\n  ",[135,136,138],"dt",{"id":137},"severity","Severity",[140,141,142],"dd",{},"low",[135,144,146],{"id":145},"tier","Tier",[140,148,149],{},"info",[135,151,153],{"id":152},"category","Category",[140,155,156],{},"organization",[135,158,159],{"id":46},"Layer",[140,161,162],{},"container",[135,164,166],{"id":165},"version","Version",[140,168,169],{},"1",[135,171,173],{"id":172},"effort","Effort",[140,175,176,179],{},[27,177,178],{},"15min"," (about 15 minutes)",[135,181,182],{"id":52},"Reversibility",[140,184,185],{},"non-destructive",[55,187,189],{"id":188},"see-also","See also",[17,191,192,200,207],{},[20,193,194,199],{},[195,196,198],"a",{"href":197},"\u002Fcategories\u002Forganization\u002F","Organization rules"," — other rules in this category",[20,201,202,206],{},[195,203,205],{"href":204},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,208,209,213],{},[195,210,212],{"href":211},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":215,"searchDepth":216,"depth":216,"links":217},"",2,[218,219,220,221,222,223],{"id":57,"depth":216,"text":58},{"id":80,"depth":216,"text":81},{"id":87,"depth":216,"text":88},{"id":107,"depth":216,"text":108},{"id":126,"depth":216,"text":127},{"id":188,"depth":216,"text":189},[225,228,230],{"label":226,"href":227},"API Reference","\u002F",{"label":229,"href":211},"Rules",{"label":29},{"cards":232,"onpage":244},[233],{"title":234,"tabs":235},"Evaluate",[236,240],{"label":237,"language":238,"code":239},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"empty-folders\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":241,"language":242,"code":243},"MCP","text","User: Run empty-folders on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"empty-folders\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[245,246,247,248,249],{"id":57,"label":58},{"id":80,"label":81},{"id":87,"label":88},{"id":107,"label":108},{"id":126,"label":127},null,"Folders contain no tags, triggers, or variables — artifacts from previous configurations that add clutter.","md",{},true,"\u002Frules\u002Fempty-folders","TechArticle",{"title":5,"description":251},"rules\u002Fempty-folders",false,"npCKOxPpuV44rZNlnIpY2LeXklCS5ucm8yfXZW52qaE",1796069483983]