---
title: "cleanup(framer:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwprotocolframerimplementation/cleanup(framer:)"
---

# cleanup(framer:)

Indicates that your protocol should clean up all allocations before being deallocated.

## Declaration

```swift
func cleanup(framer: NWProtocolFramer.Instance)
```

## See Also

### Handling Instance Lifetime

- [init(framer:)](network/nwprotocolframerimplementation/init(framer:).md)
- [start(framer:)](network/nwprotocolframerimplementation/start(framer:).md)
- [NWProtocolFramer.StartResult](network/nwprotocolframer/startresult.md)
- [wakeup(framer:)](network/nwprotocolframerimplementation/wakeup(framer:).md)
- [stop(framer:)](network/nwprotocolframerimplementation/stop(framer:).md)
- [label](network/nwprotocolframerimplementation/label.md)
