---
title: "destroyAggregateDevice(_:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwaresystem/destroyaggregatedevice(_:)"
---

# destroyAggregateDevice(_:)

Destroys the aggregate device represented by the given AudioHardwareAggregateDevice.

## Declaration

```swift
func destroyAggregateDevice(_ device: AudioHardwareAggregateDevice) throws
```

## Parameters

- `device`: The AudioHardwareAggregateDevice to destroy.

## Discussion

Discussion The actual destruction of the aggregate device is asynchronous and may take place after the call to this routine has returned.
