Removes one or more of ``instances`` from the relation. :raises OperationalError: remove() was called with no instances.
(self, *instances: MODEL, using_db: BaseDBAsyncClient | None = None)
| 226 | await self._remove_or_clear(using_db=using_db) |
| 227 | |
| 228 | async def remove(self, *instances: MODEL, using_db: BaseDBAsyncClient | None = None) -> None: |
| 229 | """ |
| 230 | Removes one or more of ``instances`` from the relation. |
| 231 | |
| 232 | :raises OperationalError: remove() was called with no instances. |
| 233 | """ |
| 234 | if not instances: |
| 235 | raise OperationalError("remove() called on no instances") |
| 236 | await self._remove_or_clear(instances, using_db) |
| 237 | |
| 238 | async def _remove_or_clear( |
| 239 | self, |