Skip to main content
TagManifest /Docs Dashboard

Empty folders found

Folders contain no tags, triggers, or variables — artifacts from previous configurations that add clutter.

On this page 6

Summary

  • rule_id — empty-folders
  • purpose — Detect GTM folders that contain no tags, triggers, or variables
  • effect — Leftover folders add workspace clutter without affecting tag firing
  • layer — container
  • reversibility — non-destructive

What fires this

The rule filters data.folders for any entry where 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 folderId and folderName.

Why it matters

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.

Before / after

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.

"Legacy CRM" folder deleted. The remaining two folders reflect actual workspace structure. No tags, triggers, or variables were affected.

Remediation

  1. Open the GTM workspace and navigate to each flagged folder.
  2. Confirm the folder contains no tags, triggers, or variables.
  3. Delete the folder. Empty folders have no downstream dependencies — deletion cannot affect tag firing.
  4. Publish the container to record the cleanup in version history.

Metadata

Severity
low
Tier
info
Category
organization
Layer
container
Version
1
Effort
15min (about 15 minutes)
Reversibility
non-destructive

See also

Examples

Evaluate
curl https://developer.tagmanifest.com/v1/evaluate-rule \
  -H "Authorization: Bearer $TM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rule_id":"empty-folders","url":"https://example.com"}'