---
title: "captureSession(_:didRemove:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcapturesessiondelegate/capturesession(_:didremove:)"
---

# captureSession(_:didRemove:)

Notifies the delegate when the session removes surfaces and objects.

## Declaration

```swift
func captureSession(_ session: RoomCaptureSession, didRemove room: CapturedRoom)
```

## Parameters

- `session`: An object that manages the room-scanning process.
- `room`: A structure that contains surfaces and objects that the framework removes from the scan.

## See Also

### Updating a session

- [captureSession(_:didAdd:)](roomplan/roomcapturesessiondelegate/capturesession(_:didadd:).md)
- [captureSession(_:didChange:)](roomplan/roomcapturesessiondelegate/capturesession(_:didchange:).md)
- [captureSession(_:didUpdate:)](roomplan/roomcapturesessiondelegate/capturesession(_:didupdate:).md)
