---
title: "templateApplicationScene(_:didDisconnectInterfaceController:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:diddisconnectinterfacecontroller:)"
---

# templateApplicationScene(_:didDisconnectInterfaceController:)

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

## Declaration

```swift
optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnectInterfaceController interfaceController: CPInterfaceController)
```

## Parameters

- `templateApplicationScene`: The scene disconnecting from the app.
- `interfaceController`: The interface controller for managing the user interface of this scene.

## Discussion

Discussion CarPlay calls this method after it disconnects the scene. You can use it to perform any cleanup. important: CarPlay doesn’t call this method for navigation apps. You must implement templateApplicationScene(_:didDisconnect:from:) instead.

## See Also

### Responding to the Scene Life Cycle

- [templateApplicationScene(_:didConnect:)](carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:didconnect:).md)
- [templateApplicationScene(_:didConnect:to:)](carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:didconnect:to:).md)
- [templateApplicationScene(_:didDisconnect:from:)](carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:diddisconnect:from:).md)
