packages/search/strapi-provider-search-algolia/lib/index.js
/**
       * Deletes multiple entities from a index
       *
       * @param {object} params - Paramaters
       * @param {string} params.indexName - Name of the index
       * @param {Array<string>} params.ids - Ids used for identification of the entries
       * @returns {Promise<algoliasearch.ChunkedBatchResponse>} Promise with chunked task
       */
Deletes multiple entities from a index
@param {object} params - Paramaters
@param {string} params.indexName - Name of the index
@param {Array} params.ids - Ids used for identification of the entries
@returns {Promise} Promise with chunked task
Deletes multiple entities from a index @param { object } params - Paramaters @param { string } params . indexName - Name of the index @param { Array } params . ids - Ids used for identification of the entries @returns { Promise } Promise with chunked task
deleteMany({ indexName, ids }) {
        return client
          .initIndex(indexName)
          .deleteObjects(ids)
          .then(() => debug && strapi.log.debug(`Algolia provider: Deleted ${ids.length} entries from index '${indexName}'.`))
          .catch((error) => {
            throw new Error(`Algolia provider: ${error.message}`);
          });
      }
deleteMany ( { indexName , ids } ) { return client . initIndex ( indexName ) . deleteObjects ( ids ) . then ( ( ) => debug && strapi . log . debug ( ` ${ ids . length } ${ indexName } ` ) ) . catch ( ( error ) => { throw new Error ( ` ${ error . message } ` ) ; } ) ; }
Deletes multiple entities from a index
 @param {object} params - Paramaters
 @param {string} params.indexName - Name of the index
 @param {Array<string>} params.ids - Ids used for identification of the entries
 @returns {Promise<algoliasearch.ChunkedBatchResponse>} Promise with chunked task
Deletes multiple entities from a index @param { object } params - Paramaters @param { string } params . indexName - Name of the index @param { Array<string > } params . ids - Ids used for identification of the entries @returns { Promise<algoliasearch . ChunkedBatchResponse > } Promise with chunked task