Troubleshooting

How to Bulk Delete GTM Container Changes Before Publishing

4 min read··By the TrackingCoder team
🧹

You've been experimenting in GTM. Maybe you tried a new tag setup, imported a container to test something, or copy-pasted a colleague's snippet to see how it worked. Now your workspace is cluttered with 30 changes you don't actually want to publish, and ticking through them one by one feels exhausting.

Good news: GTM lets you abandon changes in bulk. Here's how.

Step 1: Open Workspace Changes

At the top of your GTM container, just under the workspace name (usually "Default Workspace"), you'll see a number - that's the count of unpublished changes in your current workspace. Click it.

Alternatively, in the left sidebar, click your workspace name → Workspace Changes.

Step 2: Review what's actually changed

The Workspace Changes panel lists every modification: tags added/edited/deleted, triggers, variables, and folders. Each row shows the type of change and lets you click in to see the before/after diff.

Take 30 seconds to scan the list. If there's anything you actually want to keep, that's your last chance.

Step 3: Abandon all (or selectively)

To clear everything: at the top of the Workspace Changes panel, click the three-dot menu (⋮) → Abandon All Changes.

To clear only some changes: each row has its own three-dot menu (⋮) → Abandon Change. Repeat for each one you want to discard.

Step 4: Confirm

GTM asks "Are you sure?" - yes, you're sure. Click confirm.

Your workspace immediately resets to the last published container state. Anything you abandoned is gone - there's no undo.

Important: this does NOT touch your live container

Abandoning workspace changes only affects your DRAFT. The live site keeps running on whatever container version is currently published. Nothing on your site changes until you make new changes AND click Submit + Publish.

So abandoning is completely safe to do, even on a production GTM container. It's the equivalent of throwing away a draft Word document - the published version is unaffected.

Pro tip: use multiple workspaces for safer experiments

GTM supports multiple workspaces (3 free per container, more on paid plans). Use them. When you want to test something risky, create a fresh workspace called "experiment-2026-05" or similar, do your edits there, and abandon the workspace entirely if it doesn't pan out - no need to manually clean up.

To create a new workspace: click the workspace name in the top bar → + New Workspace. Give it a descriptive name. When you're done experimenting, delete the workspace from the same menu.

Skip the manual setup

TrackingCoder detects your CMS and plugins automatically, then generates ready-to-use tracking code. No more adapting generic tutorials - get code tailored to your exact setup in under 2 minutes.

Try TrackingCoder Free →

2 free credits on signup. No card required.