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

# templateApplicationDashboardScene(_:didDisconnect:from:)

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

```
optional func templateApplicationDashboardScene(_ templateApplicationDashboardScene: CPTemplateApplicationDashboardScene, didDisconnect dashboardController: CPDashboardController, from window: UIWindow)
```

## Parameters

`templateApplicationDashboardScene`

The scene disconnecting from the app.

`dashboardController`

The controller that was managing this scene’s dashboard shortcut buttons.

`window`

The window where your app was drawing its map content.

## Discussion

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

---

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)