Re-Initiate (Reset) Document Class

Hello,
I have a project using a document class. Now I was thinking about simple thing, is it possible to re-initiate, I mean “reset” the document class, so that it starts over again?

Like, I want to reset all variables and classes (also, remove them) by resetting the document class.

Thanks!