In the Documentation (LINK) you write for permanent deletion:
Add '-force' tag to permanently delete your workspace
so use the command:
PS C:\>Remove-AzOperationalInsightsWorkspace -ResourceGroupName "resource-group-name" -Name "workspace-name" -Force
In the Docu of Remove-AzOperationalInsightsWorkspace Command the Force Flag is described as:
Forces the command to run without asking for user confirmation.
So for me it didn't work to delete a Log Analytics Workspace permanently via CLI.
Or did I miss here something?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@the-mod Thanks for your comment! We will review and provide an update as appropriate.
@the-mod Thanks for reaching out!! To troubleshoot or check whether the log analytics workspace is force deleted or not. I would suggest you to send mail to [email protected] by including your Azure subscription ID , Log analytics workspace name and a link to this GitHub thread (for context) so that I can check from my end and assist you accordingly.
@the-mod You can now delete workspaces using PowerShell as the bug has been fixed by the engineering team. Below are the new commands that were added. I would suggest you to update your Az.OperationalInsights module to latest version 2.3.0 and try to delete the workspace.