# Can't clear variables with subscripts [duplicate]

ClearAll["Global*"]


doesn't clear subscripted variables. It won't clear these variables for example.

Subscript[x, D] = {{0.97, 0.95, 0.93, 0.94, 0.96}}
Subscript[x, B] = {{0.04, 0.05, 0.06, 0.06, 0.04}}

• – xzczd Feb 10 '16 at 2:59
• Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Michael E2 Feb 10 '16 at 3:10
• You can format inline code and code blocks by selecting the code and clicking the {} button above the edit window. The edit window help button ? is also useful for learning how to format your questions and answers. You may also find this this meta Q&A helpful – Michael E2 Feb 10 '16 at 3:11
• Please don't use subscripts until you're really proficient in Mathematica. See mathematica.stackexchange.com/a/18395/193 – Dr. belisarius Feb 10 '16 at 3:12

Subscript[x, D], etc., are expressions, not variables. Your definitions are stored as down-values of the symbol Subscript. You need to use
ClearAll[Subscript]
`