insights.clear

Prev Next

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

Name Type Required Description
[category] Text No Category of insights to remove
[insights] Boolean No Whether or not to clear insights
[plots] Boolean No Whether or not to clear plots

Returns

No return value.


Examples

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

Remarks

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