You're viewing an archived version of our docs. Check out our current documentation →

Delete a rule

Deletes a Recommend rule from a recommendation scenario.

Usage

Required ACL: editSettings
1
2
3
4
5
6
7
8
9
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',
});