async def delete ( self ) : the_tuple = await self . queue . delete ( self . tube , self . task_id ) self . update_from_tuple ( the_tuple ) return bool ( self . state == DONE )
python queue get delete
Delete task ( in any state ) permanently .
async def delete(self):
        """
        Delete task (in any state) permanently.

        Returns `True` is task is deleted.
        """
        the_tuple = await self.queue.delete(self.tube, self.task_id)

        self.update_from_tuple(the_tuple)

        return bool(self.state == DONE)