---
title: "MIDIDeviceListDispose(_:)"
framework: coremidi
role: symbol
role_heading: Function
path: "coremidi/mididevicelistdispose(_:)"
---

# MIDIDeviceListDispose(_:)

Disposes of a device list, but not its devices.

## Declaration

```swift
func MIDIDeviceListDispose(_ devList: MIDIDeviceListRef) -> OSStatus
```

## Parameters

- `devList`: The device list of which you dispose.

## Return Value

Return Value An OSStatus result code.

## See Also

### Managing Device Lists

- [MIDIDeviceListGetNumberOfDevices(_:)](coremidi/mididevicelistgetnumberofdevices(_:).md)
- [MIDIDeviceListGetDevice(_:_:)](coremidi/mididevicelistgetdevice(_:_:).md)
- [MIDIDeviceListAddDevice(_:_:)](coremidi/mididevicelistadddevice(_:_:).md)
- [MIDIDeviceListRef](coremidi/mididevicelistref.md)
