Is there a way to discard any information retained in RAM without restarting when using Windows and Linux?
listed in answer
ANSWER:
Discarding data from RAM is best done by the application that owns that data. There are mechanisms that enable a suitably privileged user to directly access RAM, but then you are left with the big problem of finding the data you want to erase and erasing it without causing an application to malfunction. Worse yet, the data may not be in RAM: it may be in the paging file (or “swap area” in UNIX terms). Again, sufficiently privileged users may have write access to the swap area, but you have the same big problem as before.
So I guess I’m answering your question with: Not really.

New Comments