Skip to content

New Command: Delete a Purview retention event #4374

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 purview retentionevent remove [options]

Description

Delete a retention event

Options

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

Examples

Delete a retention event by id

m365 purview retentionevent remove --id c37d695e-d581-4ae9-82a0-9364eba4291e

Additional Info

The following Graph endpoint can be used:
https://graph.microsoft.com/beta/security/triggers/retentionEvents/{retentionEventId}/{id}

More information

Because the $filter option is not available on this endpoint yet, we cannot get at the event by title

Beta notice

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

More information

This section should be included in the documentation

This command is part of a series of commands that have to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.

Read more on event-based retention here

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions