---
title: "POST /invitations/delete"
method: POST
path: "/invitations/delete"
---

# POST /invitations/delete

`POST /invitations/delete`

Deletes Amazon Macie membership invitations that were received from specific accounts.

## Request body

- object
  - `accountIds` String[], required — An array that lists Amazon Web Services account IDs, one for each account that sent an invitation to delete.

## Response `200`

Success

- DeleteInvitationsResponse
  - `unprocessedAccounts` UnprocessedAccount[] — An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.
    - `accountId` string — The Amazon Web Services account ID for the account that the request applies to.
    - `errorCode` 'ClientError' | 'InternalError' — The source of the issue or delay in processing the request.
    - `errorMessage` string — The reason why the request hasn't been processed.

## Other responses

- `480` — ValidationException
- `481` — InternalServerException
- `482` — ServiceQuotaExceededException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException
- `485` — ThrottlingException
- `486` — ConflictException

---

[API](https://skmtc.net/aws/apis/macie2.md) · [All operations](https://skmtc.net/aws/apis/macie2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/macie2/versions/6252cf55d8ef/schema)
