outlook calendar remove
Removes the calendar of a user.
Usage
m365 outlook calendar remove [options]
Options
-i, --id [id]ID of the calendar. Specify either
idorname, but not both.-n, --name [name]Name of the calendar. Specify either
idorname, but not both.--userId [userId]ID of the user. Specify either
userIdoruserName, but not both.--userName [userName]UPN of the user. Specify either
userIdoruserName, but not both.--calendarGroupId [calendarGroupId]ID of the calendar group. Specify either
calendarGroupIdorcalendarGroupName, but not both.--calendarGroupName [calendarGroupName]Name of the calendar group. Specify either
calendarGroupIdorcalendarGroupName, but not both.--permanentPermanently remove the calendar, don't send it to the recycle bin.
-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 |
Examples
Remove the calendar for the current signed-in user by id.
m365 outlook calendar remove --userId "@meId" --id "AAMkAGI2TGuLAAA="
Permanently remove the calendar from a specific calendar group for the current signed-in user by name.
m365 outlook calendar remove --userId "@meId" --calendarGroupName "Colleague calendars" --name "Calendar" --permanent
Remove the calendar from a specific calendar group for a specific user by name.
m365 outlook calendar remove --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA=" --name "Calendar"
Response
The command won't return a response on success.