---
title: "removeRepresentation(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsimage/removerepresentation(_:)"
---

# removeRepresentation(_:)

Removes and releases the specified image representation.

## Declaration

```swift
func removeRepresentation(_ imageRep: NSImageRep)
```

## Parameters

- `imageRep`: The image representation object you want to remove.

## See Also

### Working with Representations of Images

- [addRepresentation(_:)](appkit/nsimage/addrepresentation(_:).md)
- [addRepresentations(_:)](appkit/nsimage/addrepresentations(_:).md)
- [representations](appkit/nsimage/representations.md)
- [bestRepresentation(for:context:hints:)](appkit/nsimage/bestrepresentation(for:context:hints:).md)
- [NSImageRep.HintKey](appkit/nsimagerep/hintkey.md)
- [NSImage.LayoutDirection](appkit/nsimage/layoutdirection.md)
