---
title: "templateApplicationDashboardScene(_:didDisconnect:from:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cptemplateapplicationdashboardscenedelegate/templateapplicationdashboardscene(_:diddisconnect:from:)"
---

# templateApplicationDashboardScene(_:didDisconnect:from:)

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

## Declaration

```swift
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

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

## See Also

### Responding to the Scene Life Cycle

- [templateApplicationDashboardScene(_:didConnect:to:)](carplay/cptemplateapplicationdashboardscenedelegate/templateapplicationdashboardscene(_:didconnect:to:).md)
