Skip to content

Commit e5b18fd

Browse files
committed
Add deleteIfExists in readme references
1 parent 9ec5e95 commit e5b18fd

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
@@ -411,9 +411,14 @@ Or using the index object:
411411

412412
`client.deleteIndex(uid): Promise<void>`
413413
Or using the index object:
414-
415414
`index.delete(): Promise<void>`
416415

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

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

0 commit comments

Comments
 (0)