...
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 | ||
---|---|---|
| ||
TypeName.removeAll() |
for JavaScript, and
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
Tag.removeData() |
...