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

# templateApplicationScene(_:didDisconnectInterfaceController:)

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

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

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 ``doc://com.apple.carplay/documentation/CarPlay/CPTemplateApplicationSceneDelegate/templateApplicationScene(_:didDisconnect:from:)`` 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)