---
title: cleanUp()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsprintoperation/cleanup()
---

# cleanUp()

Called at the end of a print operation to remove the print operation as the current operation.

## Declaration

```swift
func cleanUp()
```

## Discussion

Discussion You typically do not invoke this method directly.

## See Also

### Running the Print Operation

- [run()](appkit/nsprintoperation/run().md)
- [runModal(for:delegate:didRun:contextInfo:)](appkit/nsprintoperation/runmodal(for:delegate:didrun:contextinfo:).md)
- [deliverResult()](appkit/nsprintoperation/deliverresult().md)
