Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 2.03 KB

File metadata and controls

81 lines (53 loc) · 2.03 KB

import Global from '../../_global.mdx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

planner plan remove

Removes the Microsoft Planner plan

Usage

m365 planner plan remove [options]

Options

`-i, --id [id]`
: ID of the plan to remove. Specify either `id` or `title` but not both.

`-t, --title [title]`
: Title of the plan to remove. Specify either `id` or `title` but not both.

`--ownerGroupId [ownerGroupId]`
: ID of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.

`--ownerGroupName [ownerGroupName]`
: Name of the Group that owns the plan. Specify either `ownerGroupId` or `ownerGroupName` when using `title`.

`-f, --force`
: Don't prompt for confirmation.

Remarks

If you wish to delete a Planner plan contained within a Planner Roster, you'll have to remove the roster using planner roster remove.

Permissions

Resource Permissions
Microsoft Graph Tasks.ReadWrite, GroupMember.Read.All
Resource Permissions
Microsoft Graph Tasks.ReadWrite.All, GroupMember.Read.All

Examples

Removes the Microsoft Planner plan by ID

m365 planner plan remove --id gndWOTSK60GfPQfiDDj43JgACDCb

Removes the Microsoft Planner plan with title My Plan in group with specific ID

m365 planner plan remove --title "My Plan" --ownerGroupId 00000000-0000-0000-0000-000000000000

Removes the Microsoft Planner plan with title My Plan in group with name My Planner Group without confirmation prompt

m365 planner plan remove --title "My Plan" --ownerGroupName "My Planner Group" --force

Response

The command won't return a response on success.