def METHOD_NAME(queue, id):
    """
    Delete job by id from queue
    @param queue: Queue on redis to delete from
    @param id: Job id
    """
    job = queue.fetch_job(id)
    if job is not None:
        # stop job if it is in master redis node (in the queue)
        logger.info(f"Stopping job {id} from queue {queue.name}.")
        try:
            job.cancel()
            job.delete()
            logger.debug(f"Fetched job {id} and stopped.")
        except InvalidJobOperation:
            logger.debug(f"Job {id} was already cancelled.")
    else:
        # try to stop job on worker (job started)
        logger.info(f"Stopping job {id} on worker from queue {queue.name}.")
        try:
            send_stop_job_command(_redis, id)
            logger.debug(f"Send stop job {id} to redis worker.")
        except Exception as e:
            logger.debug(f"Redis job {id} was not found: {str(e)}")