audio.remove

getAudio(id).remove()

Removes the <audio> element from the screen, which contained buttons to control playback and volume.

Example:
[js highlight=”6″ try=”true”]newAudio(“beep”, “test.mp3”)
.print()
.wait()
,
getAudio(“beep”)
.remove()[/js]

Adds an interface to start/stop playing the audio file test.mp3 onto the screen, and removes it from the screen after the audio has been fully played.