code: def purge(self, name=None):
          
          self.disconnect(name)
  
          if name in self._connections:
              del self._connections[name]
docs: Disconnect from the given database and remove from local cache
  
          :param name: The name of the connection
          :type name: str
  
          :rtype: None