I think what I'm looking for is a .plist file.
specifically what I want, is it possible to clear whatever files saves last opened windows that are re-opened on startup that get saved after a shutdown from the power button or general power failure without disrupting general use.