---
title: "unregisterImage(with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiimageasset/unregisterimage(with:)"
---

# unregisterImage(with:)

Unregisters the image with the specified image configuration details from the image asset.

## Declaration

```swift
func unregisterImage(with configuration: UIImage.Configuration)
```

## Parameters

- `configuration`: An object containing the image configuration details for a previously registered image. This method matches only the contents of the object, so you don’t need to specify the same object you used at registration time.

## Discussion

Discussion This method searches for an image whose configuration details match the information in the configuration parameter. The configuration details must match exactly, and must be associated with an image that you registered previously.

## See Also

### Registering and unregistering images

- [register(_:with:)](uikit/uiimageasset/register(_:with:)-2plm5.md)
- [register(_:with:)](uikit/uiimageasset/register(_:with:)-89c5b.md)
- [unregister(imageWith:)](uikit/uiimageasset/unregister(imagewith:).md)
