registry-delete | ![]() |
(registry-delete <key>)
Deletes a registry key or an empty registry subtree.
This function should only be applied to one of your own registry keys as you can easily destroy a running Windows system!
This function cannot delete a key that has subkeys. If the subtree is not empty, every key returned by registry-subkeys must be deleted before. A tree has to be deleted recursivly.
(registry-delete
(strcat "HKEY_CURRENT_USER\\" (registry-acad-product-key)
"\\Profiles\\myprofile\\Drawing Window\\FontHeight")) => T
Valid <key> string arguments for every registry-xxx function should start with one of the following strings:
HKEY_CLASSES_ROOT HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS HKEY_CURRENT_CONFIG
registry-delete is the same as the according Vital Lisp 3 function (vlx-registry-delete) and the undocumented Visual Lisp function (vl-registry-delete) - but without optional arguments.
Note: For safety reasons the Visual Lisp function (vl-registry-delete) is not expanded by Ctrl-Space.
Note
Carefully check the correct key as this function easily can damage a user's Windows environment!
The Windows registry is a central OS database which is easily and fast accessed, but it's hard to copy entries to other systems.
key: A string naming the specific registry subtree and key. Case-dependant
T on success, NIL otherwise.
None, besides changing the windows registry. However this might have desastrous side-effects!
(std-require 'REGISTRY)
Defined in REGISTRY