def __delitem__(self,name):
self.sam |= KEY_SET_VALUE<EOL>try:<EOL><INDENT>_winreg.DeleteValue(self.hkey,name)<EOL><DEDENT>except WindowsError:<EOL><INDENT>raise KeyError("<STR_LIT>" % (name,))<EOL><DEDENT>
Item deletion deletes key values.