spe containertype remove
Remove a specific container type
Usage
m365 spe containertype remove [options]
Options
-i, --id [id]The ID of the container type. Specify either
idornamebut not both.-n, --name [name]The container type name. Specify either
idornamebut not both.-f, --forceForce removal of the container type without 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.
Remarks
This command relies on a different API endpoint due to current API limitations. As a result, it requires different permissions than other spe containertype commands. We plan to align the permissions in the future once these limitations are resolved.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| SharePoint | Container.Selected |
To use this command you must be either SharePoint Administrator or Global Administrator.
| Resource | Permissions |
|---|---|
| SharePoint | Container.Selected |
Examples
Removes a container type by ID.
m365 spe containertype remove --id 4ec4aefd-4fa3-0e4a-20c3-6e68389e7138
Removes a container type by name.
m365 spe containertype remove --name 'My container type'
Response
The command won't return a response on success.