This Google Tag Manager Recipe includes an empty container. If you need to purge a GTM container which contains a whole bunch of tags, triggers, and variables, one way to achieve that is to import an empty JSON container which overwrites all them all.
- Download Container File
Download the container JSON file (right-click on the link and click “Save Link As” or “Save Target As” to save the JSON file to your computer).
- Import JSON File into GTM
Log into your own Google Tag Manager container and head to the Admin section of the site. Under Container options, select Import Container. Read this blog post for more details about importing a container file. Important – choose “Overwrite” import option.
- Preview & Publish
Once you’ve imported the container, check your list of tags, triggers, and variables – they all should be empty. Only several built-in variables remain: Event, Page Hostname, Page Path, Page URL, Referrer.