Actually relate my this post.But I don't want to clear all memory took up by Mathematica.
memory:=Row[{"Memory Used:",MemoryInUse[]/1024^2.," MB"}]
memory
(* Memory Used:109.582 MB *)
a=RandomInteger[1,{10^8}];
memory
(* Memory Used:871.666 MB *)
b=RandomInteger[1,{10^8}];
memory
(* Memory Used:1634.61 MB *)
I want to clear the variable a and release the space took up by variable a but keep the b. Is possible?
$HistoryLength=0andClear[a]? – Carl Woll Jun 20 '17 at 20:09Outcells and make sure they're not anywhere in theDownValuesforOuteither. I say, this should stay open. – LLlAMnYP Jun 22 '17 at 06:03