---
title: deactivate()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscolorwell/deactivate()
---

# deactivate()

Deactivates the color well.

## Declaration

```swift
func deactivate()
```

## Discussion

Discussion This method detaches the color well from the system color panel. Future selections in the color panel don’t update the color well’s current color.

## See Also

### Activating and deactivating color wells

- [activate(_:)](appkit/nscolorwell/activate(_:).md)
- [isActive](appkit/nscolorwell/isactive.md)
