<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRunningApplication/forceTerminate()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRunningApplication(im)forceTerminate"
  },
  "title" : "forceTerminate()"
}
-->

# forceTerminate()

Attempts to force the receiver to quit.

```
func forceTerminate() -> Bool
```

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if the application successfully terminated, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method will return <doc://com.apple.documentation/documentation/Swift/false> if the application is no longer running when the `forceTerminate` message is sent to the receiver.

This method may return before the receiver exits; you should observe the terminated property to determine when the application terminates.

Sandboxed applications can’t use this method to terminate other applciations. This method returns <doc://com.apple.documentation/documentation/Swift/false> when called from a sandboxed application.

---

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)