''

def clear_associated_files(self, metadata_safe=False, purge=False):

    for assoc in self.implicitly_converted_datasets:
        if ((not assoc.deleted) and ((not metadata_safe) or (not assoc.metadata_safe))):
            assoc.clear(purge=purge)
    for assoc in self.implicitly_converted_parent_datasets:
        assoc.clear(purge=purge, delete_dataset=False)
