Contents

removeZone(_:completionHandler:)

Removes a zone from the home.

Declaration

func removeZone(_ zone: HMZone, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func removeZone(_ zone: HMZone) async throws

Parameters

  • zone:

    The zone to remove.

  • completion:

    The block executed after the request is processed.

    error

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

See Also

Grouping rooms into zones