---
title: ImageInUseError
framework: retentionmessaging
role: symbol
role_heading: Object
path: retentionmessaging/imageinuseerror
---

# ImageInUseError

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

## Declaration

```data
object ImageInUseError
```

## Properties

errorCode: errorMessage:

## Overview

Overview The Delete Image endpoint returns this error if a configured message uses the imageIdentifier. To delete an image, first delete all messages that include the image.

## See Also

### Errors

- [AltTextTooLongError](retentionmessaging/alttexttoolongerror.md)
- [BodyTooLongError](retentionmessaging/bodytoolongerror.md)
- [DefaultMessageNotFoundError](retentionmessaging/defaultmessagenotfounderror.md)
- [ExistingPerformanceTestRunError](retentionmessaging/existingperformancetestrunerror.md)
- [ForbiddenNoPassingTestError](retentionmessaging/forbiddennopassingtesterror.md)
- [HeaderTooLongError](retentionmessaging/headertoolongerror.md)
- [ImageAlreadyExistsError](retentionmessaging/imagealreadyexistserror.md)
- [ImageNotApprovedError](retentionmessaging/imagenotapprovederror.md)
- [ImageNotFoundError](retentionmessaging/imagenotfounderror.md)
- [InvalidImageError](retentionmessaging/invalidimageerror.md)
- [InvalidLocaleError](retentionmessaging/invalidlocaleerror.md)
- [InvalidPerformanceTestRequestError](retentionmessaging/invalidperformancetestrequesterror.md)
- [InvalidProductIdError](retentionmessaging/invalidproductiderror.md)
- [InvalidRequestIdError](retentionmessaging/invalidrequestiderror.md)
- [MaximumNumberOfImagesReachedError](retentionmessaging/maximumnumberofimagesreachederror.md)
