Open nicodecleyre opened 1 year ago
Very nice @nicodecleyre! And this is an extra reason to have the listTitle optionSet on file level as well: consistency between the commands.
I did some textual changes and opened it up 👍
May I work on this!
Awesome @ktskumar, this issue is all yours!
Hey @ktskumar, are you still working on this?
Hey @ktskumar, are you still working on this?
Yep. I missed this item from my bucket list. Will push my code asap.
@ktskumar are you still working on this?
Resetting due to lack of response
Usage
m365 spo list sensitivitylabel remove [options]
Description
Clears a default sensitivity label from a document library
Options
-u, --webUrl <webUrl>
-t, --listTitle [listTitle]
listTitle
,listId
, orlistUrl
but not multiple.-l, --listId [listId]
listTitle
,listId
, orlistUrl
but not multiple.--listUrl [listUrl]
listTitle
,listId
, orlistUrl
but not multiple.-f, --force
Examples
Removes a sensitivity label on a document library based on the list title
Removes a sensitivity label on a document library based on the list url
Removes a sensitivity label on a document library based on the list id. Doesn't prompt for confirmation.
Default properties
No response
Additional Info
This can be archieved by doing:
PATCH https://contoso.sharepoint.com/sites/testcomm/_api/web/lists(guid'[List ID]')
orPATCH https://contoso.sharepoint.com/sites/testcomm/_api/web/lists/getByTitle('[List Title]')
orPATCH https://contoso.sharepoint.com/sites/testcomm/_api/web/GetList([List server relative URL])
headers
body
on success the api returns a 204 No Content