CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

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

2 in the Azure CLI reference
--force, -fDeletes the workspace without the recovery option.
--workspace-name, --name, -nName of the Log Analytics Workspace.