Sep 20, 2024
Delete a rule
Deletes a Recommend rule from a recommendation scenario.
Usage
Required ACL:
editSettings
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
import algoliasearch.api.RecommendClient
import algoliasearch.config.*
val client = RecommendClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
val response = Await.result(
client.deleteRecommendRule(
indexName = "ALGOLIA_INDEX_NAME",
model = RecommendModels.withName("related-products"),
objectID = "objectID"
),
Duration(100, "sec")
)
Did you find this page helpful?