---
title: "MIDIThruConnectionDispose(_:)"
framework: coremidi
role: symbol
role_heading: Function
path: "coremidi/midithruconnectiondispose(_:)"
---

# MIDIThruConnectionDispose(_:)

Disposes a MIDI thru connection.

## Declaration

```swift
func MIDIThruConnectionDispose(_ connection: MIDIThruConnectionRef) -> OSStatus
```

## Parameters

- `connection`: The connection to dispose.

## Return Value

Return Value An OSStatus result code.

## See Also

### Managing Connections

- [MIDIThruConnectionCreate(_:_:_:)](coremidi/midithruconnectioncreate(_:_:_:).md)
- [MIDIThruConnectionRef](coremidi/midithruconnectionref.md)
- [MIDIThruConnectionEndpoint](coremidi/midithruconnectionendpoint.md)
- [Endpoint Configuration](coremidi/endpoint-configuration.md)
