delete the Unity audio source component obj.
DeleteUnityAudioSource["name"]
delete the Unity audio source component with the specified name.


DeleteUnityAudioSource
delete the Unity audio source component obj.
DeleteUnityAudioSource["name"]
delete the Unity audio source component with the specified name.
Details and Options
- DeleteUnityAudioSource destroys the Unity audio source component, and releases any references to obj.
- DeleteUnityAudioSource[All] destroys all the audio sources in the current scene.
- DeleteUnityAudioSource is Listable
Examples
open all close allBasic Examples (1)
Scope (4)
Possible Issues (1)
A UnityAudioSource cannot be accessed after deletion:

Related Guides
Text
Wolfram Research (2019), DeleteUnityAudioSource, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.
CMS
Wolfram Language. 2019. "DeleteUnityAudioSource." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.
APA
Wolfram Language. (2019). DeleteUnityAudioSource. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html
BibTeX
@misc{reference.wolfram_2025_deleteunityaudiosource, author="Wolfram Research", title="{DeleteUnityAudioSource}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_deleteunityaudiosource, organization={Wolfram Research}, title={DeleteUnityAudioSource}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html}, note=[Accessed: 16-August-2025]}