spo folder sharinglink clear
Removes sharing links of a folder
Usage
m365 spo folder sharinglink clear [options]
Options
-u, --webUrl <webUrl>
The URL of the site where the folder is located.
--folderUrl [folderUrl]
The server- or site-relative decoded URL of the folder. Specify either
folderUrl
orfolderId
but not both.--folderId [folderId]
The Unique ID (GUID) of the folder. Specify either
folderUrl
orfolderId
but not both.-s, --scope [scope]
Scope of the sharing link. Possible options are:
anonymous
,users
ororganization
. If not specified, all links will be removed.-f, --force
Don't prompt for confirmation.
-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 all sharing links from a folder specified by id without prompting for confirmation.
m365 spo folder sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234 --force
Removes sharing links of type anonymous from a folder specified by url with prompting for confirmation.
m365 spo folder sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl '/sites/demo/Shared Documents/folder1' --scope anonymous
Response
The command won't return a response on success.