spe container recyclebinitem remove
Permanently removes a container from the recycle bin
Usage
m365 spe container recyclebinitem remove [options]
Options
-i, --id [id]The container id. Specify either
idornamebut not both.-n, --name [name]The display name of the Container. Specify either
idornamebut not both.--containerTypeId [containerTypeId]The container type ID of the container instance. Use either
containerTypeIdorcontainerTypeNamebut not both.--containerTypeName [containerTypeName]The container type name of the container instance. Use either
containerTypeIdorcontainerTypeNamebut not both.-f, --forceDon't prompt for confirmation.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
This command only supports application permissions when using the containerTypeId option.
| Resource | Permissions |
|---|---|
| Microsoft Graph | FileStorageContainer.Selected |
Examples
Remove a deleted container by ID.
m365 spe container recyclebinitem remove --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
Remove a deleted container by using its name and container type ID.
m365 spe container recyclebinitem remove --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73" --name "Invoices"
Remove a deleted container by using its name and container type name.
m365 spe container recyclebinitem remove --containerTypeName "My container type name" --name "Invoices"
Response
The command won't return a response on success.