<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPTemplateApplicationSceneDelegate/templateApplicationScene(_:didDisconnect:from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPTemplateApplicationSceneDelegate(im)templateApplicationScene:didDisconnectInterfaceController:fromWindow:"
  },
  "title" : "templateApplicationScene(_:didDisconnect:from:)"
}
-->

# templateApplicationScene(_:didDisconnect:from:)

Tells the delegate when CarPlay removes a scene from your navigation app.

```
optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnect interfaceController: CPInterfaceController, from window: CPWindow)
```

## Parameters

`templateApplicationScene`

The scene disconnecting from the app.

`interfaceController`

The interface controller for managing the user interface of this scene.

`window`

The window where the app draws the map content.

## Discussion

CarPlay calls this method after it disconnects the scene. You can use it to perform any cleanup.

> Important:
> CarPlay calls this method exclusively for navigation apps. All other categories of apps must implement ``doc://com.apple.carplay/documentation/CarPlay/CPTemplateApplicationSceneDelegate/templateApplicationScene(_:didDisconnectInterfaceController:)`` instead.

---

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)