def delete(self, href=None):
if self.is_fake:<EOL><INDENT>return<EOL><DEDENT>if href is None:<EOL><INDENT>self.collection.delete()<EOL>return<EOL><DEDENT>item = self.get(href)<EOL>if item is None:<EOL><INDENT>raise ComponentNotFoundError(href)<EOL><DEDENT>item.etesync_item.delete()<EOL>
Delete an item.

        When ``href`` is ``None``, delete the collection.