Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When developing a C3 package, you frequently need to provision and re-provision progressively changing versions of a given package. This can result in older versions of your data lingering on your Tag even though you're no longer using it. Additionally, when you use your tag for a different package, you may leave behind old data which is not used.

There are two options for cleaning data.

Cleaning data from specific Types individually

Suppose you want to remove the data associated with the Type 'TypeName' All that's needed in this case is the 'removeAll' command. As follows:

Code Block
languagejs
TypeName.removeAll()

for JavaScript, and

Code Block
languagepy
c3.TypeName.removeAll()

for Python.

Cleaning all data from the Tag

You can remove all data from your tag with either of the following commandsthe `removeData` method. Please be aware, that not all users are authorized to do this.

Code Block
languagejs
Tag.removeData()

...