milvus-logo
LFAI
< Docs
  • Java

dropDatabase()

This operation drops a database with a name.

public void dropDatabase(DropDatabaseReq request)

Request Syntax

dropDatabase(DropDatabaseReq.builder()
    .databaseName(String databaseName)
    .build()
)

BUILDER METHODS:

  • databaseName(String databaseName)

    The name of the database to drop.

RETURNS:

void

EXCEPTIONS:

  • MilvusClientExceptions

    This exception will be raised when any error occurs during this operation.

Example

DropDatabaseReq dropDatabaseReq = DropDatabaseReq.builder()
        .databaseName(databaseName)
        .build();
client.dropDatabase(dropDatabaseReq);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?