CmdID / az / az dms / az dms project / az dms project task
az dms project task delete
Delete a migration task. Azure CLI reference
1 option Its page in the Azure CLI reference
Options
--delete-running-tasksIf the task is currently running, cancel the task before deleting the project.