Reputation: 51
I'm working on a project where I add and update sports calendars to a user's Outlook calendar.
I'm facing a consistent issue where I can't delete ANY calendars via the API or the desktop web application.
Every time I delete a calendar through the API, I receive the following code and message:
{
code: 'ErrorFolderExists',
message: 'A folder with the specified name already exists.'
}
Any ideas?
My API call is something like:
DELETE https://outlook.office.com/api/v2.0/me/calendars/:calendarId
The only solution I've seen is to rename the calendar and then delete it, but I'm hoping for something a little more stable.
Any help would be appreciated!
Upvotes: 1
Views: 488
Reputation: 598
This error happens because you have deleted a calendar with the same name before; if you check your "Deleted Items" folder, you will see your previously deleted calendar. There are three ways around it:
Upvotes: 3