deleteRegistry

Removes an entry from the registry.

# Metadata

Platforms: desktop, server OS: windows Introduced: 2.0 Security:

# Syntax

deleteRegistry(keyPath)

# Params

- keyPath : The keyPath parameter is the path to a registry entry.

# Examples

deleteRegistry("HKEY_CLASSES_ROOT\.txt\")

if not deleteRegistry(storedKey) then answer "Couldn't delete key."

# Description

Use the deleteRegistry function to uninstall a registry entry your application has previously installed.

>*Tip:* To delete a subkey, use the setRegistry function to set the > subkey's value to empty.

On Mac OS and Unix systems, the deleteRegistry function returns "not supported".

>*Warning:* Be careful to use only carefully debugged entries with the > deleteRegistry function., and be very certain you know all the > ramifications of the entry you're removing. Removing entries from the > registry can cause the system to behave > unexpectedly or stop functioning altogether.

# Tags

# See

- **control structure:** function - **glossary:** registry, return - **function:** setRegistry, queryRegistry, platform