CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 02:16:24 GMT
server: Generic Web Server
content-location: ClearDefinitionsForSymbolsAndFunctions.html.en
vary: negotiate,accept-language
tcn: choice
set-cookie: WR_SID=c534afb8.64114f87c0642; path=/; max-age=315360000; domain=.wolfram.com
accept-ranges: bytes
content-type: text/html
content-language: en
content-security-policy: upgrade-insecure-requests
Clear Definitions for Symbols and Functions—Wolfram Documentation
Clear Definitions for Symbols and Functions
WORKFLOW
Clear Definitions for Symbols and Functions
Clearing definitions works the same for symbols assigned values with Set (=) and functions defined with SetDelayed (:=).
Define a function or symbol
Define a function f:
Find the definition of a function or symbol
Find the definition of f:
- You can also use Definition to get a symbol or a function’s definition.
Clear the definition of a function or symbol
Clear the definition of f:
The function f is no longer defined:
Notes
If you redefine a function, using Clear beforehand will ensure that no unwanted definitions linger and cause potential problems.
Clear clears definitions, but not attributes, messages or defaults associated with symbols. Use ClearAll to clear all information associated with a symbol.
Remove the symbol completely:
Related Workflows
Related Functions
Related Guides
Related Links
- Fast Introduction for Programmers: Assignments
- Fast Introduction for Programmers: Function Definitions
- An Elementary Introduction to the Wolfram Language: Assigning Names to Things
- An Elementary Introduction to the Wolfram Language: Defining Your Own Functions
- An Elementary Introduction to the Wolfram Language: Immediate and Delayed Values