---
title: "removeCollection(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/removecollection(_:)"
---

# removeCollection(_:)

Removes the specified font collection.

## Declaration

```swift
func removeCollection(_ collectionName: String) -> Bool
```

## Parameters

- `collectionName`: The collection to remove.

## Return Value

Return Value true if the font collection was successfully removed; otherwise, false.

## See Also

### Methods

- [availableFontNames(matching:)](appkit/nsfontmanager/availablefontnames(matching:).md)
- [fontDescriptors(inCollection:)](appkit/nsfontmanager/fontdescriptors(incollection:).md)
- [addCollection(_:options:)](appkit/nsfontmanager/addcollection(_:options:).md)
- [addFontDescriptors(_:toCollection:)](appkit/nsfontmanager/addfontdescriptors(_:tocollection:).md)
- [removeFontDescriptor(_:fromCollection:)](appkit/nsfontmanager/removefontdescriptor(_:fromcollection:).md)
- [fontManager(_:willIncludeFont:)](objectivec/nsobject-swift.class/fontmanager(_:willincludefont:).md)
