code: def delete_consumer(self, consumer=None):
          
          if consumer is None: consumer = self._consumer
          return self.database.xgroup_delconsumer(self.key, self.group, consumer)
docs: Remove a specific consumer from a consumer group.
  
          :consumer: name of consumer to delete. If not provided, will be the
              default consumer for this stream.
          :returns: number of pending messages that the consumer had before
              being deleted.