Skip to content

New command: Remove a retentionlabel from a folder using spo folder retentionlabel remove #4164

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 spo folder retentionlabel remove [options]

Description

Clear the retention label from a folder

Options

Option Description
-u, --webUrl <webUrl> The url of the web
--folderUrl [folderUrl] The server-relative URL of the folder of which the label should be removed. Specify either folderUrl or folderId but not both.
i, --folderId [folderId] The UniqueId (GUID) of the folder of which the label should be removed. Specify either folderUrl or folderId but not both.
--confirm Don't prompt for confirming to remove the label.

Examples

Clear the label from a folder

m365 spo folderretentionlabel remove --webUrl 'https://contoso.sharepoint.com/sites/sales' --folderUrl '/sites/sales/somelibrary/somefile.pdf

More information

This command can be implemented with shared code created for #4162.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions