Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Q) How to clear all variables

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1764] Re: [mg1705] Q) How to clear all variables
  • From: Allan Hayes <hay at haystack.demon.co.uk>
  • Date: Wed, 26 Jul 1995 00:52:14 -0400

Alessandro Rossi <rossiale at vega.unive.it>
>Subject: [mg1705] Q) How to clear all variables
wrote:

> if you have been working for 1 hours and you want to clear all
> the variables you have assigned is there a way much simplier than:
> - digit: Clear(x1,x2,x3,.......,x10000), or
> - save the notebooks, quit mathematica, restart mathematica, open 
> the noteb.

Alessandro:

Clear["`*"]

will clear all symbols that you have created in the current context.

Example:

a = 1;b = 2;

{a,b}
	{1, 2}

Clear["`*"]

{a,b}
	{a, b}

Allan Hayes
De Montfort University, Leicester
hay at haystack.demon.co.uk


  • Prev by Date: Putting Mathematica Graphics into TeX or LaTeX?
  • Next by Date: Re: Simple problem for math wiz
  • Previous by thread: Re: Q) How to clear all variables
  • Next by thread: Looking to buy Mathmatica for Windows?