New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: m365 spo folder sharinglink remove
#5966
Comments
you have a small glitch in |
My remarks:
|
The specs look good enough for me. Would you like to work on this @MathijsVerbeeck, or open it up? |
You can open it up. I do still have some research however on how to retrieve the driveitemid from a folder, as this is not that straightforward as with a file. Should I post this procedure on every command (maybe add it in the specs)? |
Can I take this as well? I will be working on the List command today. |
All yours @Saurabh7019 . Thanks for your help! |
id may not be GUID
Usage
m365 spo folder sharinglink remove [options]
Description
Removes a sharing link from a folder
Options
-u, --webUrl <webUrl>
--folderUrl [folderUrl]
folderUrl
orfolderId
but not both--folderId [folderId]
folderUrl
orfolderId
but not both-i, --id <id>
-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
The API call to removea sharing link can be found on the following documentation: https://learn.microsoft.com/en-us/graph/api/permission-delete?view=graph-rest-1.0&tabs=http
Please try to use the SP REST API v2.1 as much as possible to reduce the need for extra Graph permissions.
The text was updated successfully, but these errors were encountered: