Message Boards Message Boards

GROUPS:

Erase saved Values ?

Posted 10 months ago
1018 Views
|
3 Replies
|
0 Total Likes
|

Hi, in a Notebook, I defined some constants by numerical values. But I cannot erase that definition. Neither by opening a new Notebook, nor by using the command "Clear". Does someone know how to do that?

3 Replies

What did you do exactly with Clear? This way works for me:

a = 1;
Clear[a]

Another way:

a = 1;
a =.

A more drastic Clear, that wipes out all symbols in the Global context:

Clear["Global`*"]

Perhaps you are troubled that the symbol a remains even after you use Clear on it:

    Names["Global`*"]
{}
    a = 1;
    Clear[a]
    Names["Global`*"]
{a}

In that case, you could use Remove instead of Clear:

    Remove[a]
    Names["Global`*"]
{}
Posted 10 months ago

Thank you very much, the "Remove" Command works very well. Have a nice day.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract