outlook calendargroup remove
Removes a calendar group.
Usage
m365 outlook calendargroup remove [options]
Options
--id [id]ID of the calendar group to remove. Specify either
idorname, but not both.--name [name]Name of the calendar group to remove. Specify either
idorname, but not both.--userId [userId]ID of the user. Specify either
userIdoruserName, but not both. This option is required when using application permissions.--userName [userName]UPN of the user. Specify either
userIdoruserName, but not both. This option is required when using application permissions.-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 | Calendars.ReadWrite |
| Resource | Permissions |
|---|---|
| Microsoft Graph | Calendars.ReadWrite |
Remarks
The calendar group must be empty before it can be removed. Make sure to delete all calendars in the group first.
Examples
Remove a calendar group specified by id for the signed-in user.
m365 outlook calendargroup remove --id "AAMkAGE0MGM1Y2M5LWEzMmUtNGVlNy05MjRlLTk0YmYyY2I5NTM3ZAAuAAAAAAC_0WfqSjt_SqLtNkuO-bj1AQAbfYq5lmBxQ6a4t1fGbeYAAAAAAEOAAA="
Remove a calendar group specified by name for the signed-in user.
m365 outlook calendargroup remove --name "Personal Events"
Remove a calendar group specified by id for a user specified by id.
m365 outlook calendargroup remove --id "AAMkADIxYjJiYm" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"
Remove a calendar group specified by name for a user specified by UPN without prompting for confirmation.
m365 outlook calendargroup remove --name "Personal Events" --userName "john.doe@contoso.com" --force
Response
The command won't return a response on success.