Delete a rule

Deletes a Recommend rule from a recommendation scenario.

Usage

Required ACL: editSettings
1
2
3
4
5
6
7
8
9
10
import { algoliasearch } from 'algoliasearch';

//
const client = algoliasearch('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY').initRecommend();

const response = await client.deleteRecommendRule({
  indexName: 'indexName',
  model: 'related-products',
  objectID: 'objectID',
});
Did you find this page helpful?