Skip to main content
2 of 2
added 113 characters in body
Ajasja
  • 13.8k
  • 3
  • 47
  • 105

You can do

ClearAll[Evaluate[$Context <> "*"]]

Or switch the context to be unique to each group of cells.¸

Example menu setting

Depending on your needs you can also use Quit[], which will terminate the kernel, therbye clearing everything.

Ajasja
  • 13.8k
  • 3
  • 47
  • 105