Skip to content

New Command: Remove default retention label from SharePoint list #4290

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 spo list retentionlabel remove [options]

Options

Option Description
-u, --webUrl <webUrl> The URL of the site where the list is located.
-t, --listTitle [listTitle] The title of the list on which to set the label. Specify either listTitle, listId, or listUrl but not multiple.
-i, --listId [listId] The id of the list on which to set the label. Specify either listTitle, listId, or listUrl but not multiple.
--listUrl [listUrl] Server- or web-relative URL of the list on which to set the label. Specify either listTitle, listId, or listUrl but not multiple.
--confirm Don't prompt for confirming to remove the label.

Remarks

A list retention label is a default label that can be applied to all new items in the list. Using the remove command, you can clear this label. The label will not be cleared from list items.

Examples

Sets retention label on the list with specified site-relative URL located in the specified site.

m365 spo list retentionlabel remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'Shared Documents'

Sets retention label on the list with the specified title located in the specified site.

m365 spo list retentionlabel ensure --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'Documents'

Additional Info

This is the related command to spo list retentionlabel ensure

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions