Contents

removeHome(_:completionHandler:)

Removes a home from this home manager.

Declaration

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

Parameters

  • home:

    The home to remove.

  • completion:

    The block executed after the request is processed.

    error

    nil on success; otherwise, error object indicating the reason for failure.

Discussion

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

See Also

Adding and removing homes