Contents

removeUser(_:completionHandler:)

Removes a user from the home.

Declaration

func removeUser(_ user: HMUser, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func removeUser(_ user: HMUser) async throws

Parameters

  • user:

    The user to remove.

  • completion:

    The block executed after the request is processed.

    error

    nil on success; otherwise, error object indicating the reason for failure. error.userInfo[HMUserFailedAccessoriesKey] contains more information in case of failure. See Hmuserfailedaccessorieskey for more details.

See Also

Deprecated symbols