Object oriented – Question about static variables

My friend was asked this in an interview, and I would really like to have an idea about the answer.

"How would you purge if a program that has many static variables is failing?"

I do not have much idea where to start, but I do know the basics of static variables.

Some idea would be really useful.