DeleteSubKey
Previous  Next

Deletes an existing subkey, including the values it contains.
On the device and on several windows versions it will delete the subkey even if it contains other subkeys.
Syntax: DeleteSubKey (SubKey As String, RemoveKey)

Example:
Sub App_Start
      reg.New1
      reg.RootKey(reg.rtCurrentUser)
      reg.DeleteSubKey("Software","My Applicaton")
End Sub

Example: (same as the above example)
Sub App_Start
      reg.New1
      reg.RootKey(reg.rtCurrentUser)
      reg.DeleteSubKey("","Software\My Applicaton")
End Sub