---
title: close()
framework: applearchive
role: symbol
role_heading: Instance Method
path: applearchive/archivestreamprotocol/close()
---

# close()

Closes the stream and releases associated resources.

## Declaration

```swift
func close() throws
```

## See Also

### Using Archive Streams

- [cancel()](applearchive/archivestreamprotocol/cancel().md)
