def clear_preview(self):
try:<EOL><INDENT>rm = self.my_osid_object._get_provider_manager('<STR_LIT>')<EOL><DEDENT>except AttributeError:<EOL><INDENT>rm = self.my_osid_object_form._get_provider_manager('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]))<EOL><DEDENT>except AttributeError:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(self.my_osid_object_form._my_map['<STR_LIT>'][<NUM_LIT:0>]))<EOL><DEDENT>if '<STR_LIT>' not in self.my_osid_object_form._my_map['<STR_LIT>']:<EOL><INDENT>raise NotFound()<EOL><DEDENT>aas.delete_asset(<EOL>Id(self.my_osid_object_form._my_map['<STR_LIT>']['<STR_LIT>']['<STR_LIT>']))<EOL>del self.my_osid_object_form._my_map['<STR_LIT>']['<STR_LIT>']<EOL>
stub