def clear(self):
self.sam |= KEY_WRITE<EOL>for v in list(self.values()):<EOL><INDENT>del self[v.name]<EOL><DEDENT>for k in list(self.subkeys()):<EOL><INDENT>self.del_subkey(k.name)<EOL><DEDENT>
Remove all subkeys and values from this key.