---
title: "removeHome(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmhomemanager/removehome(_:completionhandler:)"
---

# removeHome(_:completionHandler:)

Removes a home from this home manager.

## Declaration

```swift
func removeHome(_ home: HMHome, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func removeHome(_ home: HMHome) async throws
```

## Parameters

- `home`: The home to remove.
- `completion`: The block executed after the request is processed.

## Discussion

Discussion This method returns an error if the specified home is not managed by the home manager.

## See Also

### Adding and removing homes

- [addHome(withName:completionHandler:)](homekit/hmhomemanager/addhome(withname:completionhandler:).md)
