'Is there a way to permanently delete a container versions so NO residual remains while retaining the same GTM container ID?

Typical Use Case:

  • When setting up a new GTM container, we start by importing a container with a large number of custom javascript variables for initial setup and testing.
  • These custom javascript variables need to be completely cleared from the container before handing off to the end user -- they contain internally proprietary code and internal API access points.
  • Normally, after the deliverable GTM container version is created, we simply export the final version, import to a new container (creating a new empty container with a new container ID), update the GTM container ID in the app or website, and all is good.

Current Exception:

  • We are currently working with an end user where changing / updating the GTM container ID will not be possible.

Question:

  • Is there a way, via the GTM GUI, the GTM API, or some other reasonable route, to permanently delete container versions so NO residual remains from those versions (and they can not be undeleted), while retaining the same GTM container ID?

-- Previous research involved:



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source