def sync_deleted_files()

in ees_network_drive/deletion_sync_command.py [0:0]


    def sync_deleted_files(self, ids_list, ids):
        """Invokes delete documents api for the deleted files ids to remove them from
        workplace search.
        :param ids_list: list of ids of files to be deleted from Enterprise Search
        :param ids: structure containing ids of all files
        Returns:
            ids: updated structure containing ids of all files after performing deletion
        """
        if ids_list:
            for chunk in split_documents_into_equal_chunks(ids_list, constant.BATCH_SIZE):
                self.workplace_search_custom_client.delete_documents(chunk)
            for id in ids_list:
                ids["global_keys"]["files"].pop(id)
        return ids