Clear All Switches\Variables script call

Is there any script call to clear all switches and variables?

I only found this one $gameSelfSwitches.clear(); but it's for self switches only.
Looks like the same function call applies to normal switches and variables, too. Have you tried it?
Code:
$gameSwitches.clear();
$gameVariables.clear();
Looks like the same function call applies to normal switches and variables, too. Have you tried it?
Code:
$gameSwitches.clear();
$gameVariables.clear();
I did not, but I certainly should have 😀
Thank you, again! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/clear-all-switches-variables-script-call.112075/