code: def drop_database(self, name, force=False):
          
          tables = []
  
          if not force or self.database(name):
              tables = self.list_tables(database=name)
  
          if not force and len(tables):
              raise com.IntegrityError(
                  'Database {0} must be empty before being dropped, or set '
                  'force=True'.format(name)
              )
          statement = ddl.DropDatabase(name)
          self._execute(statement)
docs: Drop an MapD database
  
          Parameters
          ----------
          name : string
            Database name
          force : boolean, default False
            If False and there are any tables in this database, raises an
            IntegrityError