IWebApps.DeleteByResourceGroup Method

Definition

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

public void DeleteByResourceGroup (string resourceGroupName, string name, bool? deleteMetrics = default, bool? deleteEmptyServerFarm = default);
abstract member DeleteByResourceGroup : string * string * Nullable<bool> * Nullable<bool> -> unit
Public Sub DeleteByResourceGroup (resourceGroupName As String, name As String, Optional deleteMetrics As Nullable(Of Boolean) = Nothing, Optional deleteEmptyServerFarm As Nullable(Of Boolean) = Nothing)

Parameters

resourceGroupName
String

the group the resource is part of

name
String

the name of the resource

deleteMetrics
Nullable<Boolean>

if true, web app metrics are also deleted

deleteEmptyServerFarm
Nullable<Boolean>

if true, empty App Service plan are also deleted

Applies to