azureazure-application-insightspurge

How to delete the data from the Azure application insights


I want to delete the traces data from my application insights table. Can one tell me how do i do that.

I'm following the below article from microsoft, https://learn.microsoft.com/en-us/rest/api/application-insights/components/purge

I'm trying to pass the below Request body,

{
"table": "traces",
"filters": [
{
  "column": "timestamp",
  "operator": ">",
  "value": "2017-09-01T00:00:00"
}
]
}

enter image description here

I'm getting Response Code: 202, but i'm still seeing the data in the analytics, where i query traces.

Please let me know, how i can delete the data with traces on my application insights resource.


Solution

  • As per this SO issue:

    Yes, it is possible to purge Application Insights data, but it may take a while (e.g. 2-3 days) for the operation to complete.

    So please wait:)