code: def purge_object(self, pid, log_message=None):
          
          kwargs = {'pid': pid}
          if log_message:
              kwargs['logMessage'] = log_message
          response = self.api.purgeObject(**kwargs)
          return response.status_code == requests.codes.ok
docs: Purge an object from Fedora.  Calls :meth:`ApiFacade.purgeObject`.
  
          :param pid: pid of the object to be purged
          :param log_message: optional log message
          :rtype: boolean