# How to remove a LocalSymbol (or CloudSymbol)?

In version 10.2 LocalSymbol can be used to create a persistent store of a variable. Once this is created I don't see a method to remove it. How are are they removed.

LocalSymbol["MySolution"] = 7


This will create a "MySolution" file in $LocalSymbolBase. All these attempts to remove it fail. ClearAll[LocalSymbol["MySolution"]] LocalSymbol["MySolution"] =. Remove[LocalSymbol["MySolution"]] DeleteFile[FileNameJoin[{$LocalSymbolBase, "MySolution"}]]


How are these symbols cleaned up? Similarly, how would you clean up a CloudSymbol?

• Perhaps DeleteFile[LocalObject["MySolution", $LocalSymbolBase] ? – ilian Sep 18 '15 at 19:28 • @ilian Yes, that does work. Thanks. Not very intuitive, though. I hope this is added to LocalSymbol's documentation. Or better yet a DeleteLocalSymbol or RemoveLocalSymbol function. – Edmund Sep 18 '15 at 19:51 ## 1 Answer Cloud symbols are stored in cloud objects (under $CloudSymbolBase) and local symbols are stored in local objects (under $LocalSymbolBase), which can be addressed using CloudObject and LocalObject respectively. DeleteFile can be used for both cloud and local objects, for example DeleteFile[CloudObject["MySolution",$CloudSymbolBase]]

DeleteFile[LocalObject["MySolution", \$LocalSymbolBase]]

• Is this bug known to WRI? I received no response when I reported it in July and it still crashes in v10.2 (CASE:3386543). – Szabolcs Sep 24 '15 at 15:15
• @Szabolcs Yes, it is fixed. – ilian Sep 24 '15 at 15:19
• @ilian Oh,you mean that you are a officail-person of wolfram-research?I'm a Chinese user,I want to post a annoy bug that the function of search is so bad in our local version of 10.2,even that I cannon search the MorphologicalTransform in the offical-documentation.And another bug is about the image-tool,it is a good tool to get a mask of pictrue.But it will freezed in evey time I take a draw.Fixed it as soon as,please. – yode Sep 24 '15 at 21:24