merge_machine/admin.py
def delete_unused_indices(self, exclude={'123vivalalgerie', '123vivalalgerie2', '123vivalalgerie3', '123vivalalgerie4'}):
        '''
        Delete ES indices whose name are not present among the normalisation or
        link projects names.
        '''
        indices_to_delete =  self.list_elasticsearch_indices() \
                            - self.list_project_ids('normalize') \
                            - self.list_project_ids('link') \
                            - exclude
        return self.delete_indices(indices_to_delete)

        Delete ES indices whose name are not present among the normalisation or
        link projects names.
        
Delete ES indices whose name are not present among the normalisation or
link projects names.
Delete ES indices whose name are not present among the normalisation or link projects names .
def delete_unused_indices(self, exclude={'123vivalalgerie', '123vivalalgerie2', '123vivalalgerie3', '123vivalalgerie4'}):
        indices_to_delete =  self.list_elasticsearch_indices() \
                            - self.list_project_ids('normalize') \
                            - self.list_project_ids('link') \
                            - exclude
        return self.delete_indices(indices_to_delete)
def delete_unused_indices ( self , exclude = { '123vivalalgerie' , '123vivalalgerie2' , '123vivalalgerie3' , '123vivalalgerie4' } ) : indices_to_delete = self . list_elasticsearch_indices ( ) - self . list_project_ids ( 'normalize' ) - self . list_project_ids ( 'link' ) - exclude return self . delete_indices ( indices_to_delete )
Delete ES indices whose name are not present among the normalisation or
link projects names.
Delete ES indices whose name are not present among the normalisation or link projects names .
'''
        Delete ES indices whose name are not present among the normalisation or
        link projects names.
        '''
self
exclude