Usage
m365 spo file retentionlabel remove [options]
Description
Clear the retention label from a file
Options
| Option |
Description |
-u, --webUrl <webUrl> |
The url of the web |
--fileUrl [fileUrl] |
The server-relative URL of the file of which the label should be removed. Specify either fileUrl or fileId but not both. |
i, --fileId [fileId] |
The UniqueId (GUID) of the file of which the label should be removed. Specify either fileUrl or fileId but not both. |
--confirm |
Don't prompt for confirming to remove the label. |
Examples
Clear the label from a file
m365 spo file retentionlabel remove --webUrl 'https://contoso.sharepoint.com/sites/sales' --fileUrl '/sites/sales/somelibrary/somefile.pdf
More information
This command can be implemented with shared code created for #4162.
Usage
m365 spo file retentionlabel remove [options]
Description
Clear the retention label from a file
Options
-u, --webUrl <webUrl>--fileUrl [fileUrl]fileUrlorfileIdbut not both.i, --fileId [fileId]fileUrlorfileIdbut not both.--confirmExamples
Clear the label from a file
More information