planner task remove
Removes the Microsoft Planner task from a plan
Usage
m365 planner task remove [options]
Options
--id [id]ID of the task to remove. Specify either
idortitlebut not both.--title [title]Title of the task to remove. Specify either
idortitlebut not both.--bucketId [bucketId]ID of the bucket to which the task to remove belongs. Specify either
bucketIdorbucketNamebut not both.--bucketName [bucketName]Name of the bucket to which the task to remove belongs. Specify either
bucketIdorbucketNamebut not both.--planId [planId]ID of the plan to which the task to remove belongs. Specify either
planIdorplanTitlewhen usingtitle.--planTitle [planTitle]Title of the plan to which the task to remove belongs. Specify either
planIdorplanTitlewhen usingtitle.--ownerGroupId [ownerGroupId]ID of the group to which the plan belongs. Specify either
ownerGroupIdorownerGroupNamewhen usingplanTitle.--ownerGroupName [ownerGroupName]Name of the group to which the plan belongs. Specify either
ownerGroupIdorownerGroupNamewhen usingplanTitle.--confirmDon't prompt for confirmation
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,response,full. Default isfull.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Removes the Microsoft Planner task by ID
m365 planner task remove --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2"
Removes the Microsoft Planner task by ID without confirmation
m365 planner task remove --id "2Vf8JHgsBUiIf-nuvBtv-ZgAAYw2" --confirm
Removes the Microsoft Planner task with title My Task in the bucket with ID vncYUXCRBke28qMLB-d4xJcACtNz
m365 planner task remove --title "My Task" --bucketId "vncYUXCRBke28qMLB-d4xJcACtNz"
Removes the Microsoft Planner task with title My Task in the bucket with name My Bucket in the Plan with ID oUHpnKBFekqfGE_PS6GGUZcAFY7b
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planId "oUHpnKBFekqfGE_PS6GGUZcAFY7b"
Removes the Microsoft Planner task with title My Task in the bucket with name My Bucket in the Plan My Plan owned by group My Group
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupName "My Group"
Removes the Microsoft Planner task with title My Task in the bucket with name My Bucket in the Plan My Plan owned by group with ID 00000000-0000-0000-0000-000000000000
m365 planner task remove --title "My Task" --bucketName "My Bucket" --planTitle "My Plan" --ownerGroupId "00000000-0000-0000-0000-000000000000"
Response
The command won't return a response on success.