def delete(self, name):
if isinstance(name, (list, tuple)):<EOL><INDENT>for xx in name:<EOL><INDENT>self.delete(xx)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if name in self._record_map:<EOL><INDENT>del self._record_map[name]<EOL>self._record_list = [<EOL>r for r in self._record_list if r['<STR_LIT:name>'] != name]<EOL><DEDENT><DEDENT>
Delete the specified entry if it exists.