<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGReleaseAllDisplays()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGReleaseAllDisplays"
  },
  "title" : "CGReleaseAllDisplays()"
}
-->

# CGReleaseAllDisplays()

Releases all captured displays.

```
func CGReleaseAllDisplays() -> CGError
```

## Return Value

A result code. See `Core Graphics Data Types and Constants`.

## Discussion

This function releases all captured displays and restores the display modes to the user’s preferences. It may be used in conjunction with any of the functions that capture displays, such as [`CGCaptureAllDisplays()`](/documentation/CoreGraphics/CGCaptureAllDisplays()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)