Sep 20, 2024
Delete a record
Deletes a record by its object ID.
To delete more than one record, use the batch
operation.
To delete records matching a query, use the deleteByQuery
operation.
Usage
Required ACL:
deleteObject
Copy
1
2
3
4
5
6
using Algolia.Search.Clients;
using Algolia.Search.Models.Search;
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));
var response = await client.DeleteObjectAsync("ALGOLIA_INDEX_NAME", "uniqueID");
Did you find this page helpful?