vl-registry-delete
 
 
 

Deletes the specified key or value from the Windows registry

(vl-registry-delete reg-key [val-name])

Arguments

reg-key

A string specifying a Windows registry key.

val-name

A string containing the value of the reg-key entry.

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.

Return Values

T if successful; otherwise nil.

Examples

_$ (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