code | type | title | description |
---|---|---|---|
true |
page |
DeleteAsync |
Deletes a document from kuzzle. |
Deletes a document.
public async Task<string> DeleteAsync(
string index,
string collection,
string id,
bool waitForRefresh = false);
Argument | Type | Description |
---|---|---|
index |
string |
Index name |
collection |
string |
Collection name |
id |
string |
Document ID |
waitForRefresh |
bool ( false ) |
If true , waits for the change to be reflected for search (up to 1s) |
The ID of the deleted document.
Throws a KuzzleException
if there is an error. See how to handle errors.
<<< ./snippets/delete.cs