---
title: "unregisterAudioResource(_:)"
framework: corehaptics
role: symbol
role_heading: Instance Method
path: "corehaptics/chhapticengine/unregisteraudioresource(_:)"
---

# unregisterAudioResource(_:)

Unregisters an external audio file that you previously registered with the engine.

## Declaration

```swift
func unregisterAudioResource(_ resourceID: CHHapticAudioResourceID) throws
```

## Parameters

- `resourceID`: The ID of the audio resource you’d like to unregister.

## See Also

### Registering Audio Resources

- [registerAudioResource(_:options:)](corehaptics/chhapticengine/registeraudioresource(_:options:).md)
- [CHHapticAudioResourceID](corehaptics/chhapticaudioresourceid.md)
