diff --git a/docarray/array/storage/base/getsetdel.py b/docarray/array/storage/base/getsetdel.py index 00189ecf82c..ab49d0f4e22 100644 --- a/docarray/array/storage/base/getsetdel.py +++ b/docarray/array/storage/base/getsetdel.py @@ -146,7 +146,7 @@ def _update_subindices_del(self, ids): if getattr(self, '_subindices', None): for selector, da in self._subindices.items(): ids_subindex = DocumentArray(self[ids])[selector, 'id'] - da._del_docs_by_ids(ids_subindex) + del da[ids_subindex] def _del_docs(self, ids): self._del_docs_by_ids(ids)