Description
The dropDatabase()
method enables you to remove a defined data source connection from MindsDB.
Syntax
Use the dropDatabase(String name)
method to remove a database:
/**
* Drop a database by its name.
*
* @param name Name database to be dropped
*/
public void dropDatabase(String name);
Example:
Server server = MindsDB.connect();
server.dropDatabase("mariadb");