public synchronized OServerAdmin dropDatabase ( final String iDatabaseName , final String storageType ) throws IOException { ODropDatabaseRequest request = new ODropDatabaseRequest ( iDatabaseName , storageType ) ; ODropDatabaseResponse response = networkAdminOperation ( request , "Cannot delete the remote storage: " + storage . getName ( ) ) ; OURLConnection connection = OURLHelper . parse ( getURL ( ) ) ; OrientDBRemote remote = ( OrientDBRemote ) ODatabaseDocumentTxInternal . getOrCreateRemoteFactory ( connection . getPath ( ) ) ; remote . forceDatabaseClose ( iDatabaseName ) ; ODatabaseRecordThreadLocal . instance ( ) . remove ( ) ; return this ; }
Drops a database from a remote server instance .