Deletes the specified key or value from the Windows registry
(vl-registry-delete reg-key [val-name])
If val-name is supplied and is not nil, the specified value will be purged from the registry. If val-name is absent or nil, the function deletes the specified key and all of its values.
T if successful; otherwise nil.
_$ (vl-registry-write "HKEY_CURRENT_USER\\Test" "" "test data")
"test data"
_$ (vl-registry-read "HKEY_CURRENT_USER\\Test")
"test data"
_$ (vl-registry-delete "HKEY_CURRENT_USER\\Test")
T
NoteThis function cannot delete
a key that has subkeys. To delete a subkey you must use vl-registry-descendents to
enumerate all subkeys and delete all of them.
See Also
-
The vl-registry-descendents, vl-registry-read, and vl-registry-write functions.