Share via


Functions.WebAppsDeleteViaIdentity Method

Definition

Overloads

WebAppsDeleteViaIdentity(String, Nullable<Boolean>, Nullable<Boolean>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IDefaultErrorResponse>, Task>, IEventListener, ISendAsync)
WebAppsDeleteViaIdentity(String, Nullable<Boolean>, Nullable<Boolean>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IDefaultErrorResponse>, Task>, IEventListener, ISendAsync)

Description for Deletes a web, mobile, or API app, or one of the deployment slots.

WebAppsDeleteViaIdentity(String, Nullable<Boolean>, Nullable<Boolean>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IDefaultErrorResponse>, Task>, IEventListener, ISendAsync)

public System.Threading.Tasks.Task WebAppsDeleteViaIdentity (string viaIdentity, bool? deleteMetrics, bool? deleteEmptyServerFarm, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onNoContent, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onNotFound, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDefaultErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync sender);
member this.WebAppsDeleteViaIdentity : string * Nullable<bool> * Nullable<bool> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801.IDefaultErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function WebAppsDeleteViaIdentity (viaIdentity As String, deleteMetrics As Nullable(Of Boolean), deleteEmptyServerFarm As Nullable(Of Boolean), onOk As Func(Of HttpResponseMessage, Task), onNoContent As Func(Of HttpResponseMessage, Task), onNotFound As Func(Of HttpResponseMessage, Task), onDefault As Func(Of HttpResponseMessage, Task(Of IDefaultErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

viaIdentity
String
deleteMetrics
Nullable<Boolean>
deleteEmptyServerFarm
Nullable<Boolean>
eventListener
IEventListener
sender
ISendAsync

Returns

Applies to

WebAppsDeleteViaIdentity(String, Nullable<Boolean>, Nullable<Boolean>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IDefaultErrorResponse>, Task>, IEventListener, ISendAsync)

Description for Deletes a web, mobile, or API app, or one of the deployment slots.

public System.Threading.Tasks.Task WebAppsDeleteViaIdentity (string viaIdentity, bool? deleteMetrics, bool? deleteEmptyServerFarm, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onNoContent, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task> onNotFound, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDefaultErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync sender);
member this.WebAppsDeleteViaIdentity : string * Nullable<bool> * Nullable<bool> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDefaultErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function WebAppsDeleteViaIdentity (viaIdentity As String, deleteMetrics As Nullable(Of Boolean), deleteEmptyServerFarm As Nullable(Of Boolean), onOk As Func(Of HttpResponseMessage, Task), onNoContent As Func(Of HttpResponseMessage, Task), onNotFound As Func(Of HttpResponseMessage, Task), onDefault As Func(Of HttpResponseMessage, Task(Of IDefaultErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

viaIdentity
String
deleteMetrics
Nullable<Boolean>

If true, web app metrics are also deleted.

deleteEmptyServerFarm
Nullable<Boolean>

Specify false if you want to keep empty App Service plan. By default, empty App Service plan is deleted.

onOk
Func<HttpResponseMessage,Task>

a delegate that is called when the remote service returns 200 (OK).

onNoContent
Func<HttpResponseMessage,Task>

a delegate that is called when the remote service returns 204 (NoContent).

onNotFound
Func<HttpResponseMessage,Task>

a delegate that is called when the remote service returns 404 (NotFound).

onDefault
Func<HttpResponseMessage,Task<IDefaultErrorResponse>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to