Deleting All Documents in Typesense Collection on Dashboard
TLDR Stephano asked how to delete all documents in a collection. Jason suggested using delete by query with a numerical field until the feature is officially added.
Powered by Struct AI

4
27mo
Solved
Jun 14, 2021 (27 months ago)
Stephano
Stephano
03:29 PM Jason how do you delete all documents in the collection using the dashboard?
Jason
Jason
03:42 PMWe’re yet to add a way to truncate a collection in Typesense core. So until then you want to delete by query using a numerical field, and do something like numerical_field:>=0
03:42
Jason
03:42 PMYou’ll find this option under delete documents
Stephano
Stephano
04:42 PMOkay yeah, thanks. I actually tried running that abs it didn’t delete any items, I’ll try again next time I have documents (ended up just deleting collection) and let u know here it it worked

Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2764 threads (79% resolved)
Similar Threads
Deleting All Documents in Typesense Collection
Vikas wanted to delete all documents in a typesense collection. Kishore Nallan suggested using a range filter on a numerical field to match and delete the entire dataset.
3
28mo
Solved
Deleting All Documents with Filter_by
Mischa wants to delete all documents using `id:*` filter but encounters issues. Jason suggests a workaround and advises creating a GitHub issue for the desired feature.
6
4mo
Deleting and Creating Documents in Typesense
Priyank asked for help with deleting and creating documents in Typesense and found the problem to be an issue with their own code. Jason offered support.

7
8mo
Solved