def delete(self, to_delete):
if not isinstance(to_delete, list):<EOL><INDENT>to_delete = [to_delete]<EOL><DEDENT>for zenpy_object in to_delete:<EOL><INDENT>object_type = get_object_type(zenpy_object)<EOL>object_cache = self.mapping.get(object_type, None)<EOL>if object_cache:<EOL><INDENT>removed_object = object_cache.pop(zenpy_object.id, None)<EOL>if removed_object:<EOL><INDENT>log.debug("<STR_LIT>" % (object_type.capitalize(), zenpy_object.id))<EOL><DEDENT><DEDENT><DEDENT>
Purge one or more items from the relevant caches