Skip to content

New command: Delete a purview retention label #4149

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 purview retentionlabel remove [options]

Description

Delete a retention label

Options

Option Description
-i, --id <id> The Id of the retention label
--confirm Don't prompt for confirming to remove the label.

Examples

Delete a retention label

m365 purview retentionlabel remove --id 'e554d69c-0992-4f9b-8a66-fca3c4d9c531'

Additional Info

The following Graph endpoint can be used:
https://graph.microsoft.com/beta/security/labels/retentionLabels/{id}

I initially had added a displayName option to get the retentionlabel by name, but $filter is not implemented as of yet, so I removed it again.

More information

Beta notice

The Graph endpoint that's used is in beta, so we should add a beta notice to the docs.

Azure AD

The command will need the Scope RecordsManagement.ReadWrite.All.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions