spo folder retentionlabel remove
Clears the retention label from a folder
Usage
m365 spo folder retentionlabel remove [options]
Options
-u, --webUrl <webUrl>
The url of the web.
--folderUrl [folderUrl]
The server- or site-relative decoded URL of the folder of which the label should be removed. Specify either
folderUrl
orfolderId
but not both.-i, --folderId [folderId]
The UniqueId (GUID) of the folder of which the label should be removed. Specify either
folderUrl
orfolderId
but not both.-f, --force
Don't prompt for confirming to remove the label.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Removes the retention label from a folder in a given site based on the folder id.
m365 spo folder retentionlabel remove --webUrl https://contoso.sharepoint.com/sites/project-x --folderId 0cd891ef-afce-4e55-b836-fce03286cccf
Removes the retention label from a folder in a given site based on the folder url.
m365 spo folder retentionlabel remove --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl /sites/project-x/Shared Documents/Folder --id 1
Response
The command won't return a response on success.