Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 49 additions & 8 deletions api-reference/v1.0/api/attachment-delete.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
---
title: "Delete attachment"
description: "Delete an attachment from a calendar event, mail message, or group post."
description: "Delete an attachment from a calendar event, mail message, note, or group post."
ms.localizationpriority: medium
author: "SuryaLashmiS"
ms.subservice: "outlook"
doc_type: apiPageType
ms.date: 08/08/2024
ms.date: 04/15/2026
---

# Delete attachment

Namespace: microsoft.graph

Delete an attachment from a user calendar event, mail message, or group post.
Delete an attachment from a user calendar event, mail message, note, or group post.

[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)]

## Permissions

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).
Depending on the resource (**event**, **message**, **note**, 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).

| Supported resource | Delegated (work or school account) | Delegated (personal Microsoft account) | Application |
|:-----|:-----|:-----|:-----|
| [event](../resources/event.md) | Calendars.ReadWrite | Calendars.ReadWrite | Calendars.ReadWrite |
| [message](../resources/message.md) | Mail.ReadWrite | Mail.ReadWrite | Mail.ReadWrite |
| [note](../resources/note.md) | ShortNotes.ReadWrite | ShortNotes.ReadWrite | ShortNotes.ReadWrite.All |
| [post](../resources/post.md) | Group.ReadWrite.All | Not supported | Not supported |


Expand Down Expand Up @@ -85,6 +86,15 @@ example shows one level of nesting, but a message can be located in a child of a
DELETE /me/mailFolders/{id}/childFolders/{id}/.../messages/{id}/attachments/{id}
DELETE /users/{id | userPrincipalName}/mailFolders/{id}/childFolders/{id}/messages/{id}/attachments/{id}
```

Attachments for a [note](../resources/note.md) in a user's mailbox.
<!-- { "blockType": "ignored" } -->

```http
DELETE /me/notes/{id}/attachments/{id}
DELETE /users/{id | userPrincipalName}/notes/{id}/attachments/{id}
```

Attachments for a [post](../resources/post.md) in a [thread](../resources/conversationthread.md) thta belongs to a [conversation](../resources/conversation.md) of a group.
<!-- { "blockType": "ignored" } -->
```http
Expand All @@ -103,9 +113,13 @@ Don't supply a request body for this method.

If successful, this method returns a `204 No Content` response code. It doesn't return anything in the response body.

## Example
### Request
The following example shows a request to delete an attachment on an event.
## Examples

### Example 1: Delete an event attachment
The following example shows how to delete an attachment on an [event](../resources/event.md).
#### Request

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
Expand Down Expand Up @@ -146,7 +160,34 @@ DELETE https://graph.microsoft.com/v1.0/me/events/{id}/attachments/{id}

---

### Response
#### Response

The following example shows the response.
<!-- {
"blockType": "response",
"truncated": true
} -->

```http
HTTP/1.1 204 No Content
```

### Example 2: Delete a note attachment
The following example shows how to delete an attachment on a [note](../resources/note.md).
#### Request

The following example shows a request.
<!-- {
"blockType": "request",
"name": "delete_attachment_from_note"
} -->

```http
DELETE https://graph.microsoft.com/v1.0/me/notes/AAMkAGI2THVSAAA=/attachments/AAMkAGI2attach2
```

#### Response

The following example shows the response.
<!-- {
"blockType": "response",
Expand Down
11 changes: 11 additions & 0 deletions api-reference/v1.0/api/multivaluelegacyextendedproperty-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The following user resources are supported:
- [mailboxItem](../resources/mailboxitem.md)
- [mailFolder](../resources/mailfolder.md)
- [message](../resources/message.md)
- [note](../resources/note.md)

As well as the following group resources:

Expand Down Expand Up @@ -56,6 +57,7 @@ Depending on the resource you're getting the extended property from and the perm
| [mailboxItem](../resources/mailboxitem.md) | MailboxItem.Read | Not supported. | MailboxItem.Read.All |
| [mailFolder](../resources/mailfolder.md) | Mail.Read | Mail.Read | Mail.Read |
| [message](../resources/message.md) | Mail.Read | Mail.Read | Mail.Read |
| [note](../resources/note.md) | ShortNotes.Read | ShortNotes.Read | ShortNotes.Read |

## HTTP request

Expand Down Expand Up @@ -125,6 +127,15 @@ GET /admin/exchange/mailboxes/{mailboxId}/folders/{mailboxFolderId}/items/{mailb

[!INCLUDE [me-apis-sign-in-note](../includes/me-apis-sign-in-note.md)]

Get a **note** instance:
<!-- { "blockType": "ignored" } -->
```http
GET /me/notes/{id}?$expand=multiValueExtendedProperties($filter=id eq '{id_value}')
GET /users/{id|userPrincipalName}/notes/{id}?$expand=multiValueExtendedProperties($filter=id eq '{id_value}')
```

[!INCLUDE [me-apis-sign-in-note](../includes/me-apis-sign-in-note.md)]

Get a **mailboxFolder** instance:
<!-- { "blockType": "ignored" } -->
```http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The following user resources are supported:
- [mailboxFolder](../resources/mailboxfolder.md)
- [mailFolder](../resources/mailfolder.md)
- [message](../resources/message.md)
- [note](../resources/note.md)

The following group resources are supported:

Expand Down Expand Up @@ -50,6 +51,7 @@ Depending on the resource you're creating the extended property in and the permi
| [mailboxFolder](../resources/mailboxfolder.md) | MailboxFolder.Read | Not supported. | MailboxFolder.Read.All |
| [mailFolder](../resources/mailfolder.md) | Mail.ReadWrite | Mail.ReadWrite | Mail.ReadWrite |
| [message](../resources/message.md) | Mail.ReadWrite | Mail.ReadWrite | Mail.ReadWrite |
| [note](../resources/note.md) | ShortNotes.ReadWrite | ShortNotes.ReadWrite | ShortNotes.ReadWrite |

## HTTP request
You can create extended properties in a new or existing resource instance.
Expand Down Expand Up @@ -87,6 +89,9 @@ POST /users/{id|userPrincipalName}/contactFolders

POST /admin/exchange/mailboxes/{mailboxId}/folders

POST /me/notes
POST /users/{id|userPrincipalName}/notes

POST /groups/{id}/events

POST /groups/{id}/threads/{id}/posts/{id}/reply
Expand Down Expand Up @@ -127,6 +132,9 @@ PATCH /users/{id|userPrincipalName}/contactFolders/{id}

PATCH /admin/exchange/mailboxes/{mailboxId}/folders/{mailboxFolderId}

PATCH /me/notes/{id}
PATCH /users/{id|userPrincipalName}/notes/{id}

PATCH /groups/{id}/events/{id}
```

Expand Down
81 changes: 81 additions & 0 deletions api-reference/v1.0/api/note-delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
title: "Delete note"
description: "Delete a note object."
author: "rajeshvulla"
ms.date: 08/07/2026
ms.localizationpriority: medium
ms.subservice: "outlook"
doc_type: apiPageType
---

# Delete note

Namespace: microsoft.graph

Delete a [note](../resources/note.md) object. Supports optimistic concurrency control via the `If-Match` header.

## Permissions

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).

<!-- {
"blockType": "permissions",
"name": "note-delete-permissions"
}
-->
[!INCLUDE [permissions-table](../includes/permissions/note-delete-permissions.md)]

## HTTP request

<!-- {
"blockType": "ignored"
}
-->
``` http
DELETE /me/notes/{note-id}
DELETE /users/{id | userPrincipalName}/notes/{note-id}
```

## Request headers

|Name|Description|
|:---|:---|
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
|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.|

## Request body

Don't supply a request body for this method.

## Response

If successful, this method returns a `204 No Content` response code.

If the `If-Match` header doesn't match the current **changeKey**, this method returns a `412 Precondition Failed` response code.

## Examples

### Request

The following example shows a request.
<!-- {
"blockType": "request",
"name": "delete_note"
}
-->
``` http
DELETE https://graph.microsoft.com/v1.0/me/notes/AAMkAGI2THVSAAA=
If-Match: "CQAAABYAAABG"
```

### Response

The following example shows the response.
<!-- {
"blockType": "response",
"truncated": true
}
-->
``` http
HTTP/1.1 204 No Content
```
Loading
Loading