Dela via


IResourceGroups.DeleteByName(String, String) Method

Definition

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

public void DeleteByName (string name, string forceDeletionTypes);
abstract member DeleteByName : string * string -> unit
Public Sub DeleteByName (name As String, forceDeletionTypes As String)

Parameters

name
String

the name of the resource to delete

forceDeletionTypes
String

The resource types you want to force delete. Currently, only the following is supported: Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets

Applies to