Delete scheduled task from windows task scheduler.

You can delete scheduled task from windows task manager,(here ‘hibes’ task scheduled in windows task manager)

import subprocess;
process= subprocess.Popen([‘SchTasks’,’/Delete’,’/TN’,‘hibes’,’/F’],shell=True,stdout=subprocess.PIPE);
result=process.communicate()[0]
print result;

Sample output would be,

SUCCESS: The scheduled task “hibes” was successfully deleted.