Erasing all pictures

I'm using numerous images for a scene but manually inputting erase events is miserable, and $game_map.screen.pictures[#].erase doesn't seem to be able to use ranges, is there some other method to erase all images at once?
You can use
Code:
$game_map.screen.clear_pictures
Thank you so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/erasing-all-pictures.176528/