Open Adam-it opened 3 weeks ago
m365 spe container remove [options]
Removes a container
-i, --id <id>
--recycle
Permanently deletes a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
Recycles a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --recycle
No response
we may use the following DELETE request to move a container to recycle bin
DELETE
/storage/fileStorage/containers/{containerId}
https://learn.microsoft.com/en-us/graph/api/filestorage-delete-containers?view=graph-rest-1.0&tabs=http
to permanently delete it we may use
beta/storageContainers/{containerId}/permanentDelete
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
@pnp/cli-for-microsoft-365-maintainers any feed?
Usage
m365 spe container remove [options]
Description
Removes a container
Options
-i, --id <id>
--recycle
Examples
Permanently deletes a container
Recycles a container
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
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