Erase of multiple declared static variable