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;
  }
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;
  }
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.

@param iDatabaseName The database name
@param storageType   Storage type between "plocal" or "memory".

@return The instance itself. Useful to execute method in chain

@throws IOException
Drops a database from a remote server instance .