PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Core Language
>
Tuning & Debugging
>
Symbol Handling
>
Remove
>
Mathematica
>
Core Language
>
Package Development
>
Namespace Management
>
Symbol Handling
>
Remove
>
BUILT-IN MATHEMATICA SYMBOL
Mathematica Packages
Contexts
Manipulating Symbols and Contexts by Name
Tutorials »
|
Clear
ClearAll
Names
See Also »
|
Assignments
Memory Measurement & Optimization
Namespace Management
Symbol Handling
Tuning & Debugging
More About »
Remove
Remove
removes symbols completely, so that their names are no longer recognized by
Mathematica
.
Remove
removes all symbols whose names match any of the string patterns
.
MORE INFORMATION
You can use
Remove
to get rid of symbols that you do not need, and which may shadow symbols in contexts later on your context path.
Remove
allows the following metacharacters:
*
match zero or more characters
@
match one or more characters, but not uppercase letters
Remove
removes all symbols in a particular context.
Remove
is
HoldAll
.
Remove
does not affect symbols with the attribute
Protected
.
Once you have removed a symbol, you will never be able to refer to it again, unless you recreate it.
If you have an expression that contains a symbol which you remove, the removed symbol will be printed as
, where its name is given in a string.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
In[1]:=
In[2]:=
Generalizations & Extensions
(2)
Remove all symbols in a given context:
Specify symbols to remove as string patterns:
Applications
(1)
If a symbol from a package is used before the package is loaded, an extra symbol is created:
The extra symbol should be removed:
Only the correct symbol from the package remains:
Properties & Relations
(3)
If a symbol is removed, all of its properties and definitions are removed as well:
Using the same symbol again creates a new one without any of its old properties:
ClearAll
also removes all properties and definitions, but leaves the symbol intact:
If an expression still refers to a removed symbol, those places are denoted with
:
Possible Issues
(1)
Protected symbols cannot be removed:
Use
Unprotect
to remove protected symbols:
SEE ALSO
Clear
ClearAll
Names
TUTORIALS
Mathematica
Packages
Contexts
Manipulating Symbols and Contexts by Name
MORE ABOUT
Assignments
Memory Measurement & Optimization
Namespace Management
Symbol Handling
Tuning & Debugging
New in 1