Skip to content

dos_regdel

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Note, this function is deprecated. User either dos_regdelkey or dos_regdelval.

Removes a value from a key or an existing subkey from a key in the Windows Registry. This function will also remove any subkeys.

WARNING: Using registry functions incorrectly can cause serious problems that may require you to reinstall your operating system. Use the registry functions carefully.

Syntax

(dos_regdel key [name])

Parameters

key

The registry key. If a name is not specified, then key and any subkeys will be removed.

name

The name of the value to remove.

Returns

T if successful.

nil on error.

Examples

Command: (dos_regdel "HKEY_CURRENT_USER\\Software\\MyApp" "MyItem")
T

Command: (dos_regdel "HKEY_CURRENT_USER\\Software\\MyApp")
T

Clone this wiki locally