WebSiteOperationsExtensions.DeleteAsync Method (IWebSiteOperations, String, String, WebSiteDeleteParameters)
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 https://msdn.microsoft.com/en-us/library/windowsazure/dn236430.aspx for more information)
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
public static Task<OperationResponse> DeleteAsync(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
WebSiteDeleteParameters parameters
)
public:
[ExtensionAttribute]
static Task<OperationResponse^>^ DeleteAsync(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
WebSiteDeleteParameters^ parameters
)
static member DeleteAsync :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string *
parameters:WebSiteDeleteParameters -> Task<OperationResponse>
<ExtensionAttribute>
Public Shared Function DeleteAsync (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String,
parameters As WebSiteDeleteParameters
) As Task(Of OperationResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsReference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringRequired. The name of the web space.
webSiteName
Type: System.StringRequired. The name of the web site.
parameters
Type: Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteDeleteParametersRequired. Parameters supplied to the Delete Web Site operation.
Return Value
Type: System.Threading.Tasks.Task<OperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace
Return to top