Contents

Delete Message

Deletes a previously uploaded message.

URL

DELETE https://api.storekit.apple.com/inApps/v1/messaging/message/{messageIdentifier}

Sandbox URL

DELETE https://api.storekit-sandbox.apple.com/inApps/v1/messaging/message/{messageIdentifier}

Path Parameters

NameTypeDescription
messageIdentifier RequiredmessageIdentifier

The identifier of the message to delete.

Response Codes

StatusReasonTypeDescription
200OK

Request succeeded.

400Bad Request

The request is invalid and unacceptable.

401Unauthorized

The JSON Web Token (JWT) in the authorization header is invalid. For more information, see Generating JSON Web Tokens for API requests.

404Not Found
Content-Type: application/json
MessageNotFoundError

The system can’t find the message.

429
Content-Type: application/json
RateLimitExceededError

The request exceeded the rate limit. For more information, see Identifying rate limits.

500Internal Server Error
Content-Type: application/json
GeneralInternalError

Server error. Try again later.

Mentioned in

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 when your server replies to the Get Retention Message endpoint.

To delete an image associated with a message, call Delete Image after you delete the message.

See Also

Message configuration