# How do I clear all variables with subscripts? [duplicate]

Possible Duplicate:
Clear complains that a variable is not a symbol or a string?

Clear["Global*"] Works for most variables, however if i do something like

$\delta_a = \alpha_a \Delta T d$

Then the Clear or ClearAll will not clear $\delta_a$, short of Quit[] is there anything that can be done to clear variables with subscripts?

-

## marked as duplicate by Mr.Wizard♦Feb 23 '12 at 23:24

Well. You can always clear a certain value by using Unset

Subscript[r, 3]=8;
Subscript[r, 3]=.;


Now, Clear and ClearAll won't work if you used regular = and assigned the values as Subscript's DownValues. But if you used UpValues, it could work

r/:Subscript[r, 3]=8;
ClearAll[r];

-

Try Remove.

Subscript[x, k_] = 1/k^2;
Clear[x]
Subscript[x, 2]
Remove[x]
Subscript[x, 2]
`
-