问题
I have deployed my project in Azure & using Application Insights. After deployment, I have done some test that why some traces wrote in respective Application Insights.
But, I just want a fresh (without any trace) Application Insights without creating a new Application Insights resource.
Is it possible to remove the previous traces from Application Insights? how?
*Application Insights- system monitor & trace/log viewer at Azure.
回答1:
It's impossible to delete any data. It ll auto-clear after retention policy days (I guess 1 or 2 weeks).
See SO link talking about disabling telemetry while debug/testing.
Btw, You can vote to bring this idea up for implementation.
Update:
The idea of deleting/purging data is completed. Now it’s possible to purge the data from AppInsights.
https://docs.microsoft.com/en-us/rest/api/application-insights/components/purge
回答2:
You can remove the traces from application insights. Make sure you use Trace table in body of Purge API and provide valid token. Refer for more details on Azure application insights purge API - https://sanganakauthority.blogspot.com/2019/06/how-to-delete-or-purge-azure.html
来源:https://stackoverflow.com/questions/45881091/remove-trace-from-application-insight