def clear(self):
for attachment in self.__attachments:<EOL><INDENT>if attachment.on_cloud:<EOL><INDENT>self.__removed_attachments.append(attachment)<EOL><DEDENT><DEDENT>self.__attachments = []<EOL>self._update_parent_attachments()<EOL>self._track_changes()<EOL>
Clear the attachments