deleteInsight(insightID)
Deletes an existing insight.
Returns
A Promise that resolves to a response containing the ID of the deleted insight.
Parameters
Name | Type | Description | Required |
insightID | string | The unique ID of the insight to be deleted. | ✅ |
Usage example
In this example, the API deletes an existing insight and returns a Promise that resolves to a response containing the ID of the deleted insight.
const insightID = "<some GUID>";
PCore.getAnalyticsUtils().deleteInsight(insightID).then(response => { console.log(response.data); }).catch(() => { ... });
Previous topic createInsight(insightObject) Next topic exportToExcel(exportRequest)