Skip to content

Commit e260b43

Browse files
bors[bot]bidoubiwa
andauthored
Merge #1109
1109: Add deleteIfExists in readme references r=bidoubiwa a=bidoubiwa Co-authored-by: cvermand <[email protected]>
2 parents 7fe3624 + e5b18fd commit e260b43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,14 @@ Or using the index object:
410410

411411
`client.deleteIndex(uid): Promise<void>`
412412
Or using the index object:
413-
414413
`index.delete(): Promise<void>`
415414

415+
- Delete an index if it exists:
416+
417+
`client.deleteIndexIfExists(uid): Promise<boolean>`
418+
Or using the index object:
419+
`index.deleteIfExists(): Promise<boolean>`
420+
416421
- [Get specific index stats](https://docs.meilisearch.com/reference/api/stats.html#get-stat-of-an-index):
417422

418423
`index.getStats(): Promise<IndexStats>`

0 commit comments

Comments
 (0)