<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareDestroyAggregateDevice(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "c:@F@AudioHardwareDestroyAggregateDevice"
  },
  "title" : "AudioHardwareDestroyAggregateDevice(_:)"
}
-->

# AudioHardwareDestroyAggregateDevice(_:)

```
func AudioHardwareDestroyAggregateDevice(_ inDeviceID: AudioObjectID) -> OSStatus
```

## Parameters

`inDeviceID`

The AudioObjectID of the AudioAggregateDevice to destroy.

## Return Value

An OSStatus indicating success or failure.

## Discussion

\abstract This routine destroys the given AudioAggregateDevice.
\discussion The actual destruction of the device is asynchronous and may take place after
the call to this routine has returned.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)