insights.clear
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

insights.clear

  • Dark
    Light
  • PDF

Article summary

Description

Removes insights and plots from the hosting product's insights panel. If a category is specified, only items within that category are removed.


Input Parameters

NameTypeRequiredDescription
[category]TextNoCategory of insights to remove
[insights]BooleanNoWhether or not to clear insights
[plots]BooleanNoWhether or not to clear plots

Returns

No return value.


Examples

// remove all insights in all categories
ai.insights.clear();
// remove all message insights in the "Tests" category only
ai.insights.clear("Tests", true, false);
// remove all plot insights in the "Tests" category only
ai.insights.clear("Tests", false, true);

Remarks

Use this function when you want to remove several or all items from the hosting product's insights panel.


What's Next