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
String

the group the resource is part of

name
String

the name of the resource

forceDeletion
Boolean

enable force deletion

Applies to