---
title: "removeContact(_:)"
framework: coremidi
role: symbol
role_heading: Instance Method
path: "coremidi/midinetworksession/removecontact(_:)"
---

# removeContact(_:)

Removes a host as a contact.

## Declaration

```swift
func removeContact(_ contact: MIDINetworkHost) -> Bool
```

## Parameters

- `contact`: The host to remove.

## Return Value

Return Value true if the session successfully removed the host, otherwise false.

## See Also

### Managing Contacts

- [contacts()](coremidi/midinetworksession/contacts().md)
- [addContact(_:)](coremidi/midinetworksession/addcontact(_:).md)
- [MIDINetworkNotificationContactsDidChange](coremidi/midinetworknotificationcontactsdidchange.md)
