CLEAR MEMORY CLEAR MEMORY releases all memory variables. Syntax CLEAR MEMORY Usage CLEAR MEMORY releases all PUBLIC and PRIVATE memory variables, while RELEASE ALL only releases PRIVATE memory variables declared in the program currently being executed.