Remove Actors x through x [bulk remove]

Is there a way to mass remove actors from your party instead of individually?
In a Script event command:

Code:
for (var id = 1; id <= 5; id++) { $gameParty.removeActor(id); }
In a Script event command:

Code:
for (var id = 1; id <= 5; id++) { $gameParty.removeActor(id); }
Thank you very much. This is what I needed. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/remove-actors-x-through-x-bulk-remove.96679/