Purging all modules
From ALICE Documentation
Purging all modules
In order to unload all modules at once, and hence be sure to start in a clean state, you can use:
$ module purge
This is always safe: the cluster module (the module that specifies which cluster jobs will get submitted to) will not be unloaded (because it’s a so-called “sticky” module).