This method of the RegKey class removes a subkey from the key.
public void deleteSubKey(String sub);
IOException if the subkey removal is unsuccessful.