code: public void delete() throws CouchbaseLiteException {
          synchronized (lock) {
              mustBeOpen();
  
              Log.i(DOMAIN, "Deleting %s at path %s", this, getC4Database().getPath());
  
              if (activeReplications.size() > 0) {
                  throw new CouchbaseLiteException(
                      "Cannot delete the database.  Please stop all of the replicators before closing the database.",
                      CBLError.Domain.CBLITE, CBLError.Code.BUSY);
              }
  
  
              if (activeLiveQueries.size() > 0) {
                  throw new CouchbaseLiteException(
                      "Cannot delete the database.  Please remove all of the query listeners before closing the "
                          + "database.",
                      CBLError.Domain.CBLITE,
                      CBLError.Code.BUSY);
              }
  
              // cancel purge timer
              cancelPurgeTimer();
  
              // delete db
              deleteC4DB();
  
              // release instances
              freeC4Observers();
              freeC4DB();
  
              // shutdown executor service
              shutdownExecutorService();
          }
      }
docs: Deletes a database.
  
  @throws CouchbaseLiteException Throws an exception if any error occurs during the operation.