---
title: closed()
framework: automator
role: symbol
role_heading: Instance Method
path: automator/amaction/closed()
---

# closed()

Invoked by Automator when the receiving action is removed from a workflow, allowing it to perform cleanup operations.

## Declaration

```swift
func closed()
```

## Discussion

Discussion This method is intended to be overridden, so that your action can perform its specific cleanup operations.
