Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Registry.DeleteTree

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

Parameters

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.
"Users\test"

Result

Returns OK or error.

Description

Deletes a key with all sub keys.

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

Examples

Deletes a tree:

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

See also

This function checks for a license.

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


Registry.DeleteKey - Registry.DeleteValue