Open MathijsVerbeeck opened 3 months ago
remove
command instead of clear
clear
means removing all sharinglinks then why would we need the id
option and why even make it required? Seems to me this option will allow to clear
single sharinglink which is the same as the remove
command right.scope
should also have an option all
which will be just default. What is your take on that?@pnp/cli-for-microsoft-365-maintainers anyone else up for 👀 on this 👍
- in the examples you refer to the
remove
command instead ofclear
My bad
- if I understand it properly if
clear
means removing all sharinglinks then why would we need theid
option and why even make it required? Seems to me this option will allow toclear
single sharinglink which is the same as theremove
command right.
Again, too hasty
- maybe the
scope
should also have an optionall
which will be just default. What is your take on that?
Why would we do that? We have it in quite a lot of commands that we simply use all when nothing is specified
- also what @milanholemans pointed out in other issue - folderUrl should allow server and site-relative URLs
Changed that
Can I work on it?
@Saurabh7019 the stage is yours 👍 You Rock 🤩
Usage
m365 spo folder sharinglink clear [options]
Description
Removes all sharing links of a folder
Options
-u, --webUrl <webUrl>
--folderUrl [folderUrl]
folderUrl
orfolderId
but not both--folderId [folderId]
folderUrl
orfolderId
but not both-s, --scope [scope]
anonymous
,users
ororganization
. If not specified, all links will be removed.-f, --force
Examples
Removes a specific sharing link from a folder by id without prompting for confirmation
Removes a specific sharing link from a folder by url with prompting for confirmation
Default properties
No response
Additional Info
No response