System.Win.Registry.TRegistry.DeleteKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DeleteKey(const Key: string): Boolean;

C++

bool __fastcall DeleteKey(const System::UnicodeString Key);

Properties

Type Visibility Source Unit Parent
function public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

Removes a specified key and its associated data from the registry.

Call DeleteKey to remove a specified key and its associated data, if any, from the registry. Under Windows 95, if the key has subkeys, the subkeys and any associated data are also removed. Under Windows NT, subkeys must be explicitly deleted by separate calls to DeleteKey.

DeleteKey returns true if key deletion is successful. On error, DeleteKey returns false.

See Also

Code Examples