<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontManagerUnregisterFontURLs(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontManagerUnregisterFontURLs"
  },
  "title" : "CTFontManagerUnregisterFontURLs(_:_:_:)"
}
-->

# CTFontManagerUnregisterFontURLs(_:_:_:)

Unregisters fonts from the specified font URLs with the font manager.

```
func CTFontManagerUnregisterFontURLs(_ fontURLs: CFArray, _ scope: CTFontManagerScope, _ registrationHandler: ((CFArray, Bool) -> Bool)?)
```

## Parameters

`fontURLs`

An array of font URLs.

`scope`

A scope constant that defines the availability and lifetime of the registration. This value should match the scope the fonts are registered in. See [`CTFontManagerScope`](/documentation/CoreText/CTFontManagerScope) for more details.

`registrationHandler`

A block called as errors arise or upon completion.

    The block’s     `errors`     parameter contains an array of     <doc://com.apple.documentation/documentation/CoreFoundation/CFError>     references; an empty array indicates no errors unregistering the files. Each error reference contains a     <doc://com.apple.documentation/documentation/CoreFoundation/CFArray>     of font URLs corresponding to [`kCTFontManagerErrorFontURLsKey`](/documentation/CoreText/kCTFontManagerErrorFontURLsKey)    . These URLs represent the font files causing the error and failing to unregister successfully.

    This block may be called multiple times during the unregistration process. The     `done`     parameter becomes     <doc://com.apple.documentation/documentation/Swift/true>     when the unregistration process completes. Return     <doc://com.apple.documentation/documentation/Swift/false>     from the block to stop the unregistration operation, like after receiving an error.

## Discussion

Unregistered fonts don’t participate in font descriptor matching.

> Note:
> On iOS, you can only use this function to unregister fonts that you registered using ``doc://com.apple.coretext/documentation/CoreText/CTFontManagerRegisterFontsForURL(_:_:_:)`` or ``doc://com.apple.coretext/documentation/CoreText/CTFontManagerRegisterFontsForURLs(_:_:_:)``.

---

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)