<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStatusItem/Behavior-swift.struct/terminationOnRemoval",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSStatusItemBehavior@NSStatusItemBehaviorTerminationOnRemoval"
  },
  "title" : "terminationOnRemoval"
}
-->

# terminationOnRemoval

A status item that quits the application upon removal.

```
static var terminationOnRemoval: NSStatusItem.Behavior { get }
```

## Discussion

A status item with this behavior quits the application if the user removes it from the menu bar. This behavior implicitly provides the same functionality as [`removalAllowed`](/documentation/AppKit/NSStatusItem/Behavior-swift.struct/removalAllowed).

The [`terminationOnRemoval`](/documentation/AppKit/NSStatusItem/Behavior-swift.struct/terminationOnRemoval) behavior is suitable for applications that display only a [`NSStatusItem`](/documentation/AppKit/NSStatusItem) and provide no other user interface.

---

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)