This is documentation for an obsolete product.
Current products and services
Previous section-----Next section

Clearing Kernels

Between different parallel computations, you may want to make sure that all remote kernels delete any variable definitions that may have been set. Rather than terminating and restarting all kernels, you can use ClearSlaves.
ClearSlaves[]clears all variables in the remote kernel's Global` context and forgets any shared variables and exported environments

Clearing definitions.

Definitions for symbols in contexts other than Global` are not cleared.
Any definitions of global symbols exported with ExportEnvironment will become unavailable. Any shared global variables will become unshared.