Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0    Statistic    FMM    Blog  


Deletes a key with all sub keys.

Component Version macOS Windows Linux Server iOS SDK
Registry 7.2 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "Registry.DeleteTree"; Path )   More


Parameter Description Example
Path The path to the registry key.
Separated by \ you specify the path to the key you want.
Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names.


Returns OK or error.


Deletes a key with all sub keys.

Not available on Windows XP. Works on Windows Vista or newer and Windows Server 2008 or newer.


Deletes a tree:

MBS( "Registry.DeleteTree"; "CurrentUser\Test")

See also

Created 20th March 2017, last changed 25th May 2017

Registry.DeleteKey - Registry.DeleteValue

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat