IVirtualMachines.DeleteByResourceGroup(String, String, Boolean) Method

Definition

Deletes a resource from Azure, identifying it by its name and its resource group.

public void DeleteByResourceGroup (string resourceGroupName, string name, bool forceDeletion);
abstract member DeleteByResourceGroup : string * string * bool -> unit
Public Sub DeleteByResourceGroup (resourceGroupName As String, name As String, forceDeletion As Boolean)

Parameters

resourceGroupName
System.String

the group the resource is part of

name
System.String

the name of the resource

forceDeletion
System.Boolean

enable force deletion

Applies to