File “C:\Python\Python311\Lib\site-packages\weaviate\batch\crud_batch.py”, line 1368, in delete_objects
res = _decode_json_response_dict(response, “Delete in batch”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python\Python311\Lib\site-packages\weaviate\util.py”, line 798, in _decode_json_response_dict
raise UnexpectedStatusCodeException(location, response)
weaviate.exceptions.UnexpectedStatusCodeException: Delete in batch! Unexpected status code: 422, with response body: {‘error’: [{‘message’: “validate: invalid where filter: no such prop with name ‘filename’ found in class ‘Test’ in the schema. Check your schema files for which properties in this class are available”}]}.
I want to deleted some chunks out of my database. They all have one word in common. I want to deleted that kind of chunks. I dont have the object id of them so i want it to do it with a word. Is that possible?
first i didnt tell you, but I have python client V3. My weaviate database version is 3.26.2.
I also checked on weaviate the delete objects website. But i tried the delete multiple objects and the containsany.
You will need to figure out the name of the property. You are passing filename which doesn’t exist.
you can check the properties of your collections with:
import weaviate
clientv3 = weaviate.Client("http://localhost:8080")
for item in clientv3.schema.get().get("classes"):
print(item["class"], [p["name"] for p in item["properties"]])
make sure the filename field is in the collection you are querying.