function DeleteKey(const Key: string): Boolean;
bool __fastcall DeleteKey(const System::UnicodeString Key);
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.