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
Usage
m365 spo list retentionlabel remove [options]Options
-u, --webUrl <webUrl>-t, --listTitle [listTitle]listTitle,listId, orlistUrlbut not multiple.-i, --listId [listId]listTitle,listId, orlistUrlbut not multiple.--listUrl [listUrl]listTitle,listId, orlistUrlbut not multiple.--confirmRemarks
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