We can remove all symbols in a particular context by using Remove["context`*"]. But is it possible to remove "context`" itself from the system so that it will no longer be listed in Contexts[]?
We can remove all symbols in a particular context by using Remove[context`*] . But
Share
As far as I can tell (a guess), a context is automatically removed from
Contexts[]once it becomes empty (has no symbols). At least, this happens in my tests. Here is one:This may also explain why calling
Contexts[]takes a sizable fraction of a second – the system must check for every context whether or not it is empty. Anyways, the answer to your question seems simple – remove all symbols and the context will be removed fromContexts[]. This also works for contexts loaded by the system – you may try some (XML'for example), although needless to say this is not a good practice, to say the least.