IWebSiteOperations.DeleteAsync Method (String, String, WebSiteDeleteParameters, CancellationToken)

 

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/library/windowsazure/dn236430.aspx for more information)

Namespace:   Microsoft.WindowsAzure.Management.WebSites
Assembly:  Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Task<OperationResponse> DeleteAsync(
	string webSpaceName,
	string webSiteName,
	WebSiteDeleteParameters parameters,
	CancellationToken cancellationToken
)

Parameters

webSpaceName
Type: System.String

The name of the web space.

webSiteName
Type: System.String

The name of the web site.

parameters
Type: Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParameters

Parameters supplied to the Delete Web Site operation.

cancellationToken
Type: System.Threading.CancellationToken

Cancellation token.

Return Value

Type: System.Threading.Tasks.Task<OperationResponse>

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

Return to top
Show: