IDatabaseOperations.DeleteAsync(String, String, CancellationToken) Method

Definition

Drops a database from an Azure SQL Database Server.

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteAsync (string serverName, string databaseName, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function DeleteAsync (serverName As String, databaseName As String, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

serverName
String

The name of the Azure SQL Database Server on which the database is hosted.

databaseName
String

The name of the Azure SQL Database to be deleted.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

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

Applies to