<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/ImageInUseError",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:ImageInUseError"
  },
  "title" : "ImageInUseError"
}
-->

# ImageInUseError

An error that indicates the image is currently in use as part of a message, so you can’t delete it.

```
object ImageInUseError
```

## Overview

The [`Delete Image`](/documentation/RetentionMessaging/Delete-Image) endpoint returns this error if a configured message uses the [`imageIdentifier`](/documentation/RetentionMessaging/imageIdentifier). To delete an image, first delete all messages that include the image.

---

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)