-
Notifications
You must be signed in to change notification settings - Fork 324
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 spp model remove #6118
Comments
LGTM to me 👍👍. @pnp/cli-for-microsoft-365-maintainers any other feed on that? |
We'll need to add a few additional remarks for this command it seems. If I read the docs right, it stated that the model needs to be removed from every library before you can delete it. So that seems like something we should best notify the users about in the docs. First, I thought we needed to also specify each library where it is applied before we can delete it but it seems that there is an "easy" endpoint we can call to get all the needed information: https://learn.microsoft.com/en-us/sharepoint/dev/apis/syntex/rest-getmodelandlibraryinfo. With this result, we can make sure that the model is removed from all libraries and then delete it.
|
hi @Jwaegebaert thank you for all comments. I have added the Remark section to the command, I hope that it will be ok. |
Awesome, nothing further to add. Do you want to work on it or open it up? |
I suggest we reconsider naming. Since we use |
@Jwaegebaert yes I can take it :) |
I agree with @waldekmastykarz. Great idea! |
@mkm17 perfect 🤩. |
Usage
m365 spp model remove [options]
Description
Delete a SharePoint Premium document understanding model
Options
-u, --siteUrl <siteUrl>
-i, --id [id]
id
ortitle
but not both.-t, --title [title]
id
ortitle
but not both.-f, --force
Examples
Delete a SharePoint Premium document understanding model using the model’s UniqueId.
Delete a SharePoint Premium document understanding model using the model’s title.
Remarks
Note that this model will be removed from all libraries before it can be deleted.
Additional Info
These two endpoints should be used:
The text was updated successfully, but these errors were encountered: