---
title: "detachColorList(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscolorpanel/detachcolorlist(_:)"
---

# detachColorList(_:)

Removes the list of colors from all the color pickers in the receiver that display color lists by invoking detachColorList(_:) on all color pickers in the application.

## Declaration

```swift
func detachColorList(_ colorList: NSColorList)
```

## Parameters

- `colorList`: The list of NSColor objects to remove from the color pickers in the color panel.

## Discussion

Discussion Your application should use this method to remove an NSColorList saved with a document in its file package or in a directory other than NSColorList’s standard search directories.

## See Also

### Managing color lists

- [attachColorList(_:)](appkit/nscolorpanel/attachcolorlist(_:).md)
