IWebSiteOperations.DeleteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteAsync (string webSpaceName, string webSiteName, Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : string * string * Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function DeleteAsync (webSpaceName As String, webSiteName As String, parameters As WebSiteDeleteParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)
Parameters
- webSpaceName
- String
The name of the web space.
- webSiteName
- String
The name of the web site.
- parameters
- WebSiteDeleteParameters
Parameters supplied to the Delete Web Site operation.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A standard service response including an HTTP status code and request ID.
Applies to
Azure SDK for .NET