<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.3.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarKey",
  "identifier" : "/documentation/CarKey/CarKeyRemoteControlSession/end()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarKey"
    ],
    "preciseIdentifier" : "s:6CarKey0aB20RemoteControlSessionC3endyyKF"
  },
  "title" : "end()"
}
-->

# end()

Ends the session and stops the delivery of notifications
for all vehicles in the session.

```
func end() throws
```

## Discussion

When you no longer need to access the vehicle information,
call this method to end the session. If the session isn’t
currently active when you call this method, it throws an error.

The system automatically ends a session when your app enters
the background. Upon reentering the foreground, you must create
a new session to communicate with your vehicle again.

---

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)