-
Notifications
You must be signed in to change notification settings - Fork 341
New command: m365 spe container remove #6084
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
Comments
@pnp/cli-for-microsoft-365-maintainers any feed? |
The recycle option is a bit vague. Won't it make more sense to recycle by default and hard delete it when you specify an additional option? One small additional detail is that we're missing the |
Thank you for your comments.
Well this is aligned with what we have. Remove hard by default and recycle when
thanks. Added 👍 |
@pnp/cli-for-microsoft-365-maintainers any other comment? |
Looks good, ship it! |
Let's also use container name as option. |
please check my comment from here #6085 (comment) |
Uh oh!
There was an error while loading. Please reload this page.
Usage
m365 spe container remove [options]
Description
Removes a container
Options
-i, --id [id]
id
orname
but not both.-n, --name [name]
id
orname
but not both.--recycle
-f, --force
Examples
Permanently deletes a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
Recycles a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --recycle
Default properties
No response
Additional Info
we may use the following
DELETE
request to move a container to recycle binhttps://learn.microsoft.com/en-us/graph/api/filestorage-delete-containers?view=graph-rest-1.0&tabs=http
to permanently delete it we may use
Also when using
name
option we will need to run the/fileStorage/containers
to list all containers and match the container by name.what's worth noticing is that permanent delete as of now is only available on beta MS Graph endpoint
https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-permanentdelete?view=graph-rest-betathe
The text was updated successfully, but these errors were encountered: