Udostępnij za pośrednictwem


WebSiteOperationsExtensions.DeleteAsync Method

Definition

You can delete a web site by issuing an HTTP DELETE request. If the web site being deleted is the only site remaining in a server farm, you can optionally delete the server farm as well by using the deleteEmptyServerFarm parameter. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236430.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName, Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParameters parameters);
static member DeleteAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string * Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParameters -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function DeleteAsync (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String, parameters As WebSiteDeleteParameters) As Task(Of AzureOperationResponse)

Parameters

operations
IWebSiteOperations

Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.

webSpaceName
String

Required. The name of the web space.

webSiteName
String

Required. The name of the web site.

parameters
WebSiteDeleteParameters

Required. Parameters supplied to the Delete Web Site operation.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to