Partager via


Delete a Task

Applies To: Windows Server 2008, Windows Vista

You can delete a task from a task folder when you no longer want to run the task. To stop a task from running for a certain time, but you do not want to permanently delete the task, you can disable the task. For more information, see Disable a Task from Running.

To delete a task by using the Windows interface

  1. If Task Scheduler is not open, start Task Scheduler. For more information, see Start Task Scheduler.

  2. Find and click the task folder in the console tree that contains the task to delete.

  3. In the console window, click the task to delete.

  4. In the Actions pane, click Delete.

  5. In the Confirm delete dialog box, click Yes.

To delete a task by using a command line

  1. Open a command prompt. To open a command prompt, click Start, click All Programs, click Accessories, and then click Command Prompt.

  2. Type:

    schtasks /Delete [/S <system> [/U <username> [/P [<password>]]]]
    /TN <taskname> [/F]
    

To view the help for this command, type:

schtasks /Delete /?

Additional references

Export a Task

Disable a Task from Running

Command-line syntax notation