Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.46 KB

list-retentionlabel-remove.mdx

File metadata and controls

56 lines (36 loc) · 1.46 KB

import Global from '/docs/cmd/_global.mdx';

spo list retentionlabel remove

Clears the retention label on the specified list or library.

Usage

m365 spo list retentionlabel remove [options]

Options

`-u, --webUrl <webUrl>`
: The URL of the site where the list is located.

`-t, --listTitle [listTitle]`
: The title of the list on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.

`-i, --listId [listId]`
: The ID of the list on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.

`-l, --listUrl [listUrl]`
: Server- or web-relative URL of the list on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.

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

Examples

Clears the retention label on a given list by URL.

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

Clears the retention label on a given list by title.

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

Clears the retention label on a given list by ID without confirmation.

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

Response

The command won't return a response on success.