LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

wine-reg-delete

Delete a key or value from the Wine registry

TLDR

Delete a registry key and everything under it
$ wine reg delete [HKCU\Software\MyApp]
copy
Delete a single value from a key
$ wine reg delete [HKCU\Software\MyApp] /v [Name]
copy
Delete the default (unnamed) value of a key
$ wine reg delete [HKCU\Software\MyApp] /ve
copy
Delete all values under a key but keep the key itself
$ wine reg delete [HKCU\Software\MyApp] /va
copy
Delete a key without a confirmation prompt
$ wine reg delete [HKCU\Software\MyApp] /f
copy

SYNOPSIS

wine reg delete key [/v value | /ve | /va] [/f]

DESCRIPTION

wine reg delete removes a registry key, a single value, or all values within a key from a Wine prefix. It mirrors the Windows reg delete command. With no value options, the entire key and all of its subkeys and values are removed.By default the command prompts for confirmation before deleting. Use /f to suppress the prompt, which is required when running non-interactively in scripts.

PARAMETERS

/v value

Delete the named value under the key.
/ve
Delete the key's default (unnamed) value.
/va
Delete all values under the key while leaving the key and its subkeys intact.
/f
Force the deletion without a confirmation prompt.

CAVEATS

Deleting a key without specifying a value also removes every subkey beneath it. There is no undo, so export the key first with wine reg export if you might need to restore it.

SEE ALSO

RESOURCES

Copied to clipboard
Kai