Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
WeakCache
Guides
Weak Cache Functions
Symbols
CheckWeakCache
CleanupAfter
ClearHistory
ClearWeakCache
CreateReference
SameInstanceQ
SetWeakCache
StrongReference
WeakHashTable
WeakReference
JasonB`WeakCache`
C
l
e
a
r
H
i
s
t
o
r
y
C
l
e
a
r
H
i
s
t
o
r
y
[
]
c
l
e
a
r
s
a
l
l
e
x
p
r
e
s
s
i
o
n
s
f
r
o
m
I
n
a
n
d
O
u
t
a
n
d
r
e
s
e
t
s
$
L
i
n
e
t
o
z
e
r
o
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
1
)
Basic Examples
(
1
)
The following demonstrates the basic usage of
C
l
e
a
r
H
i
s
t
o
r
y
:
I
n
[
1
]
:
=
$
H
i
s
t
o
r
y
L
e
n
g
t
h
=
∞
;
I
n
[
2
]
:
=
i
n
i
t
i
a
l
M
e
m
=
M
e
m
o
r
y
I
n
U
s
e
[
]
;
Assign a large list to a variable, keeping a reference to the output in the history. Note that ending the expression in a semicolon prevents the data from being printed in the notebook but does not stop it from being stored in
O
u
t
.
I
n
[
3
]
:
=
l
i
s
t
=
R
a
n
g
e
[
1
0
^
8
]
;
I
n
[
4
]
:
=
L
i
s
t
Q
[
%
]
O
u
t
[
4
]
=
T
r
u
e
I
n
[
5
]
:
=
M
e
m
o
r
y
I
n
U
s
e
[
]
-
i
n
i
t
i
a
l
M
e
m
O
u
t
[
5
]
=
8
0
0
0
0
2
1
4
4
Clearing the variable does not clear all the memory used by the list:
I
n
[
6
]
:
=
l
i
s
t
=
.
I
n
[
7
]
:
=
M
e
m
o
r
y
I
n
U
s
e
[
]
-
i
n
i
t
i
a
l
M
e
m
O
u
t
[
7
]
=
8
0
0
0
0
3
3
5
2
By clearing the history the memory is reclaimed:
I
n
[
8
]
:
=
C
l
e
a
r
H
i
s
t
o
r
y
[
]
I
n
[
9
]
:
=
M
e
m
o
r
y
I
n
U
s
e
[
]
-
i
n
i
t
i
a
l
M
e
m
O
u
t
[
9
]
=
-
5
6
0
S
e
e
A
l
s
o
C
l
e
a
n
u
p
A
f
t
e
r
▪
$
H
i
s
t
o
r
y
L
e
n
g
t
h
▪
I
n
▪
O
u
t
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
W
e
a
k
C
a
c
h
e
F
u
n
c
t
i
o
n
s
"
"