def clear_file(self):
if (self.get_file_metadata().is_read_only() or<EOL>self.get_file_metadata().is_required()):<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if '<STR_LIT>' in self.my_osid_object_form._my_map['<STR_LIT>']:<EOL><INDENT>rm = self.my_osid_object_form._get_provider_manager('<STR_LIT>')<EOL>catalog_id_str = '<STR_LIT>'<EOL>if '<STR_LIT>' in self.my_osid_object_form._my_map:<EOL><INDENT>catalog_id_str = self.my_osid_object_form._my_map['<STR_LIT>'][<NUM_LIT:0>]<EOL><DEDENT>elif '<STR_LIT>' in self.my_osid_object_form._my_map:<EOL><INDENT>catalog_id_str = self.my_osid_object_form._my_map['<STR_LIT>'][<NUM_LIT:0>]<EOL><DEDENT>try:<EOL><INDENT>try:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(catalog_id_str),<EOL>self.my_osid_object_form._proxy)<EOL><DEDENT>except NullArgument:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(catalog_id_str))<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(catalog_id_str),<EOL>self.my_osid_object_form._proxy)<EOL><DEDENT>except NullArgument:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>Id(catalog_id_str))<EOL><DEDENT><DEDENT>aas.delete_asset(Id(self.my_osid_object_form._my_map['<STR_LIT>']['<STR_LIT>']))<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] =dict(self.get_file_metadata().get_default_object_values()[<NUM_LIT:0>])<EOL>
stub