Hey, Small typo <https://typesense.org/docs/0.21.0...
# contributions
a
Hey, Small typo https://typesense.org/docs/0.21.0/api/documents.html#delete-documents
Copy code
client.collections['companies'].documents.delete_({'filter_by': 'num_employees:>100'})
the
_
is the typo. Language is
python
.
j
That's actually intended, since
delete
is a reserved keyword in python
a
Copy code
client.collections['content'].documents.delete_({'filter_by': 'client_id=1'})
    ...: 
    ...: 
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-40-dd38c25a6140> in <module>
----> 1 client.collections['content'].documents.delete_({'filter_by': 'client_id=1'})
      2 

AttributeError: 'Documents' object has no attribute 'delete_'
j
Oh my bad. I was actually thinking about
import_
which is a reserved keyword, so we had to an
_
. You're right
delete_
is indeed a typo, will fix it.
a
Thank you Jason. 🙂 🙏
j
Thank you!