1

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!

4

1 回答 1

3

发生此错误是因为您之前删除了同名日历;如果您检查“已删除邮件”文件夹,您将看到之前删除的日历。有以下三种方法:

  1. 从“已删除邮件”文件夹中删除之前删除的日历;请注意,在永久删除日历后,您将无法恢复该日历。
  2. 重命名您之前删除的日历
  3. 重命名要删除的当前日历
于 2017-06-16T21:17:31.240 回答