IWebApps.DeleteById Method

Definition

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

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

Parameters

id
String

the resource ID of the resource to delete

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