Share via


WorkspacesOperationsExtensions.Delete Method

Definition

Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. 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.

public static void Delete (this Microsoft.Azure.Management.OperationalInsights.IWorkspacesOperations operations, string resourceGroupName, string workspaceName, bool? force = default);
static member Delete : Microsoft.Azure.Management.OperationalInsights.IWorkspacesOperations * string * string * Nullable<bool> -> unit
<Extension()>
Public Sub Delete (operations As IWorkspacesOperations, resourceGroupName As String, workspaceName As String, Optional force As Nullable(Of Boolean) = Nothing)

Parameters

operations
IWorkspacesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

workspaceName
String

The name of the workspace.

force
Nullable<Boolean>

Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered.

Applies to