---
title: "Delete mailFolder"
method: DELETE
path: "/me/mailFolders/{mailFolderId}"
tags: ["me.mailFolder"]
---

# Delete mailFolder

`DELETE /me/mailFolders/{mailFolderId}`

Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists.

## Headers

- `If-Match` string

## Response `204`

If successful, the mail folder is deleted and no content is returned. Unless, the folder may not exist or the caller may lack the required permission.

## Other responses

- `4XX` — error
- `5XX` — error

---

[API](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api.md) · [All operations](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/microsoft-graph-mail-api/versions/af62694b9f2d/schema)
