---
title: "detach(_:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudioengine/detach(_:)"
---

# detach(_:)

Detaches an audio node from the audio engine.

## Declaration

```swift
func detach(_ node: AVAudioNode)
```

## Parameters

- `node`: The audio node to detach.

## Discussion

Discussion If necessary, the audio engine safely disconnects the audio node before detaching it.

## See Also

### Attaching and Detaching Audio Nodes

- [attach(_:)](avfaudio/avaudioengine/attach(_:).md)
- [attachedNodes](avfaudio/avaudioengine/attachednodes.md)
