You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete an attachment from a user calendar [event](../resources/event.md), [message](../resources/message.md), [Outlook task](../resources/outlooktask.md), or [post](../resources/post.md).
17
+
Delete an attachment from a user calendar [event](../resources/event.md), [message](../resources/message.md), [note](../resources/note.md), [Outlook task](../resources/outlooktask.md), or [post](../resources/post.md).
Depending on the resource (**event**, **message**, **outlookTask**, or **post**) that the attachment is attached to and the permission type (delegated or application) requested, the permission specified in the following table is the least privileged required to call this API. To learn more, including [taking caution](/graph/auth/auth-concepts#best-practices-for-requesting-permissions) before choosing more privileged permissions, search for the following permissions in [Permissions](/graph/permissions-reference).
25
+
Depending on the resource (**event**, **message**, **note**, **outlookTask**, or **post**) that the attachment is attached to and the permission type (delegated or application) requested, the permission specified in the following table is the least privileged required to call this API. To learn more, including [taking caution](/graph/auth/auth-concepts#best-practices-for-requesting-permissions) before choosing more privileged permissions, search for the following permissions in [Permissions](/graph/permissions-reference).
26
26
27
27
| Supported resource | Delegated (work or school account) | Delegated (personal Microsoft account) | Application |
Delete a [note](../resources/note.md) object. Supports optimistic concurrency control via the `If-Match` header.
18
+
19
+
## Permissions
20
+
21
+
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
46
+
|If-Match|The **changeKey** value for the note is used for optimistic concurrency control. Optional. We recommend that you use this header to avoid conflicts.|
47
+
48
+
## Request body
49
+
50
+
Don't supply a request body for this method.
51
+
52
+
## Response
53
+
54
+
If successful, this method returns a `204 No Content` response code.
55
+
56
+
If the `If-Match` header doesn't match the current **changeKey**, this method returns a `412 Precondition Failed` response code.
0 commit comments