---
title: "SKIndexClose(_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: coreservices/1442401-skindexclose
---

# SKIndexClose(_:)

Closes an index.

## Declaration

```swift
func SKIndexClose(_ inIndex: SKIndex!)
```

## Parameters

- `inIndex`: The index to close.

## Discussion

Discussion When your application no longer needs an index that it has opened or created, call SKIndexClose(_:). Calling this function is equivalent to calling CFRelease on an index. Search Kit is thread-safe. You can use separate indexing and searching threads. Your application is responsible for ensuring that no more than one process is open at a time for writing to an index.

## See Also

### Creating, Opening, and Closing Indexes

- [SKIndexCreateWithURL(_:_:_:_:)](coreservices/1446111-skindexcreatewithurl.md)
- [SKIndexCreateWithMutableData(_:_:_:_:)](coreservices/1447500-skindexcreatewithmutabledata.md)
- [SKIndexOpenWithData(_:_:)](coreservices/1446398-skindexopenwithdata.md)
- [SKIndexOpenWithMutableData(_:_:)](coreservices/1444201-skindexopenwithmutabledata.md)
- [SKIndexOpenWithURL(_:_:_:)](coreservices/1449017-skindexopenwithurl.md)
- [SKIndexGetIndexType(_:)](coreservices/1442236-skindexgetindextype.md)
- [SKIndexGetTypeID()](coreservices/1450223-skindexgettypeid.md)
