CmdID

CmdID / Commands / schtasks

schtasks delete

Deletes a scheduled task from the schedule. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Deletes a scheduled task from the schedule. This command doesn't delete the program that the task runs or interrupt a running program.

schtasks /delete /tn {<taskname> | *} [/f] [/s <computer> [/u [<domain>\]<user> [/p <password>]]]

To delete the Start Mail task from the schedule of a remote computer.

schtasks /delete /tn "Start Mail" /s Svr16Identify
/tnIdentifies the task to be deleted. Windows commands reference
/sSpecifies the name or IP address of a remote computer (with or without backslashes). Windows commands reference

To delete all tasks from the schedule of the local computer, including tasks scheduled by other users.

schtasks /delete /tn * /fIdentify
/tnIdentifies the task to be deleted. Windows commands reference
/fSuppresses the confirmation message. Windows commands reference

Trips 1 Sigma rule: highDelete All Scheduled Tasks by Nasreddine Bencherchali (Nextron Systems)

/tn {<taskname> | *}Identifies the task to be deleted. If you use the *, this command deletes all tasks scheduled for the computer, not just the tasks scheduled by the current user.
/fSuppresses the confirmation message. The task is deleted without warning.
/s <computer>Specifies the name or IP address of a remote computer (with or without backslashes). The default is the local computer.
/u [<domain>]Runs this command with the permissions of the specified user account. By default, the command runs with the permissions of the current user of the local computer. The specified user account must be a member of the Administrators group on the remote computer. The /u and /p parameters are valid only when you use /s.
/p <password>Specifies the password of the user account specified in the /u parameter. If you use the /u parameter without the /p parameter or the password argument, schtasks will prompt you for a password. The /u and /p parameters are valid only when you use /s.
/?Displays help at the command prompt.