简体   繁体   中英

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://docs.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"
}
]
}

在此处输入图片说明

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.

As per this SO issue :

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

So please wait:)

For traces delete operation you would need to use the separate table name as "Traces" in the body of purge operation. then you can check the status using get purge status REST API operation. Refer to know more - https://sanganakauthority.blogspot.com/2019/06/how-to-delete-or-purge-azure.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM