Share via


DatabaseOperationsExtensions.Delete Method

Drops a database from an Azure SQL Database Server.

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

Usage

'Usage
Dim operations As IDatabaseOperations
Dim serverName As String
Dim databaseName As String
Dim returnValue As AzureOperationResponse

returnValue = DatabaseOperationsExtensions.Delete(operations, serverName, databaseName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Delete ( _
    operations As IDatabaseOperations, _
    serverName As String, _
    databaseName As String _
) As AzureOperationResponse
[ExtensionAttribute] 
public static AzureOperationResponse Delete (
    IDatabaseOperations operations,
    string serverName,
    string databaseName
)
[ExtensionAttribute] 
public:
static AzureOperationResponse^ Delete (
    IDatabaseOperations^ operations, 
    String^ serverName, 
    String^ databaseName
)
/** @attribute ExtensionAttribute() */ 
public static AzureOperationResponse Delete (
    IDatabaseOperations operations, 
    String serverName, 
    String databaseName
)
ExtensionAttribute 
public static function Delete (
    operations : IDatabaseOperations, 
    serverName : String, 
    databaseName : String
) : AzureOperationResponse

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Sql.IDatabaseOperations.
  • serverName
    Required. The name of the Azure SQL Database Server on which the database is hosted.
  • databaseName
    Required. The name of the Azure SQL Database to be deleted.

Return Value

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

DatabaseOperationsExtensions Class
DatabaseOperationsExtensions Members
Microsoft.WindowsAzure.Management.Sql Namespace