<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/Delete-Message",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "rest:retention_messaging:delete:inApps-v1-messaging-message-{}"
  },
  "title" : "Delete Message"
}
-->

# Delete Message

Deletes a previously uploaded message.

## Discussion

Call this endpoint to delete a message. After successfully deleting the message, its `messageIdentifier` no longer exists.

To avoid errors, don’t use the `messageIdentifier` of deleted messages in [`RealtimeResponseBody`](/documentation/RetentionMessaging/RealtimeResponseBody) when your server replies to the `Get Retention Message` endpoint.

> Note: This endpoint isn’t idempotent. If the system doesn’t find the message, this endpoint throws an error.

To delete an image associated with a message, call [`Delete Image`](/documentation/RetentionMessaging/Delete-Image) after you delete the message.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)