'Remove a scheduled task ahead of schedule, and without
executing it.
:param string name: The name of the task to remove.'

def remove(self, name):

    try:
        self.schedule_lock.acquire()
        the_task = None
        for task in self.schedule:
            if (task.name == name):
                the_task = task
        if (the_task is not None):
            self.schedule.remove(the_task)
    except:
        raise
    finally:
        self.schedule_lock.release()
