问题
Is there any way to delete all the Run history logs from a logic app.
I know there is a preview on "Log Retention Time" right now being tested but the most frequent time to delete all logs is once every week. I need to be able to do it more frequent, in this case every 3rd day.
Is there any other way to delete logic app logs/history?
EDIT: Looking at the PowerShell commands in Azure resource manager for a specific run there are only two actions that the Azure resource manager API supports. GET and CANCEL (which I guess is cancel a run while it is running).
回答1:
A workaround would be to recreate the logic app which would get rid of the run history. If you have your Logic App deployment scripted, you can delete it and redeploy it as required.
If you want to do it manually, you can clone it with a new name, delete the original one, clone the cloned one using the original name, and then delete the clone.
HTH.
来源:https://stackoverflow.com/questions/52388377/is-there-any-way-to-delete-logic-app-run-history-logs