Usage
m365 spe container remove [options]
Description
Removes a container
Options
| Option |
Description |
-i, --id [id] |
Container id. Specify either id or name but not both. |
-n, --name [name] |
Display name of the Container. Specify either id or name but not both. |
--recycle |
Recycle a container instead of actually deleting it. |
-f, --force |
Don't prompt for confirming removing the list item |
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 bin
/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
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
Usage
m365 spe container remove [options]
Description
Removes a container
Options
-i, --id [id]idornamebut not both.-n, --name [name]idornamebut not both.--recycle-f, --forceExamples
Permanently deletes a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"Recycles a container
m365 spe container remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --recycleDefault properties
No response
Additional Info
we may use the following
DELETErequest 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
nameoption we will need to run the/fileStorage/containersto 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