code: def drop_database(self, name):
          
          with settings(warn_only=True):
              self.sudo('dropdb %s' % (name,), user='postgres')
docs: Delete a PostgreSQL database.
  
          Example::
  
              import burlap
  
              # Remove DB if it exists
              if burlap.postgres.database_exists('myapp'):
                  burlap.postgres.drop_database('myapp')