Remove all chunks/files that may have been uploaded and close.
(self)
| 1184 | object.__setattr__(self, "_ensured_index", True) |
| 1185 | |
| 1186 | def abort(self) -> None: |
| 1187 | """Remove all chunks/files that may have been uploaded and close.""" |
| 1188 | self._coll.chunks.delete_many({"files_id": self._file["_id"]}, session=self._session) |
| 1189 | self._coll.files.delete_one({"_id": self._file["_id"]}, session=self._session) |
| 1190 | object.__setattr__(self, "_closed", True) |
| 1191 | |
| 1192 | @property |
| 1193 | def closed(self) -> bool: |