What do you know? The name actually describes what the command does. CLEAR MEMORY releases all memory variables, except system variables.
CLEAR MEMORYBe careful how you use this command. Using it at the wrong time can really mess up your programs.