public void deleteDB ( String dbName , String confirm ) { assertNotEmpty ( dbName , "dbName" ) ; if ( ! "delete database" . equals ( confirm ) ) throw new IllegalArgumentException ( "Invalid confirm!" ) ; dbc . delete ( buildUri ( dbc . getBaseUri ( ) ) . path ( dbName ) . build ( ) ) ; }
Requests CouchDB deletes a database .