CmdID / az / az monitor / az monitor log-analytics / az monitor log-analytics workspace
az monitor log-analytics workspace delete
Deletes a workspace resource. Azure CLI reference
The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the --force flag.
2 examples 2 options Its page in the Azure CLI reference
Examples
Soft delete a workspace instance.
az monitor log-analytics workspace delete --resource-group MyResourceGroup --workspace-name MyWorkspaceIdentify--resource-groupName of resource group.--workspace-nameName of the Log Analytics Workspace.Completely delete a workspace instance.
az monitor log-analytics workspace delete --force --resource-group MyResourceGroup --workspace-name MyWorkspaceIdentify--forceDeletes the workspace without the recovery option.--resource-groupName of resource group.--workspace-nameName of the Log Analytics Workspace.Options
--force, -fDeletes the workspace without the recovery option.--workspace-name, --name, -nName of the Log Analytics Workspace.