<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Automator",
  "identifier" : "/documentation/Automator/AMAction/closed()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Automator"
    ],
    "preciseIdentifier" : "c:objc(cs)AMAction(im)closed"
  },
  "title" : "closed()"
}
-->

# closed()

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

```
func closed()
```

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)