def clear_triggers(name, location='\\'):
 if (name not in list_tasks(location)):
  return '{0} not found in {1}'.format(name, location)
 pythoncom.CoInitialize()
 task_service = win32com.client.Dispatch('Schedule.Service')
 task_service.Connect()
 task_folder = task_service.GetFolder(location)
 task_definition = task_folder.GetTask(name).Definition
 triggers = task_definition.Triggers
 triggers.Clear()
 return _save_task_definition(name=name, task_folder=task_folder, task_definition=task_definition, user_name=task_definition.Principal.UserID, password=None, logon_type=task_definition.Principal.LogonType)

def clear_triggers ( name , location = '\\' ) : if ( name not in list_tasks ( location ) ) : return '{0} not found in {1}' . format ( name , location ) pythoncom . CoInitialize ( ) task_service = win32com . client . Dispatch ( 'Schedule.Service' ) task_service . Connect ( ) task_folder = task_service . GetFolder ( location ) task_definition = task_folder . GetTask ( name ) . Definition triggers = task_definition . Triggers triggers . Clear ( ) return _save_task_definition ( name = name , task_folder = task_folder , task_definition = task_definition , user_name = task_definition . Principal . UserID , password = None , logon_type = task_definition . Principal . LogonType )
remove all triggers from the task .