Delete rows from the table. .. code-block:: python await Band.delete().where(Band.name == 'Pythonistas') :param force: Unless set to ``True``, deletions aren't allowed without a ``where`` clause, to prevent accidental mass deletions.
(cls, force=False)
| 1143 | |
| 1144 | @classmethod |
| 1145 | def delete(cls, force=False) -> Delete: |
| 1146 | """ |
| 1147 | Delete rows from the table. |
| 1148 | |
| 1149 | .. code-block:: python |
| 1150 | |
| 1151 | await Band.delete().where(Band.name == 'Pythonistas') |
| 1152 | |
| 1153 | :param force: |
| 1154 | Unless set to ``True``, deletions aren't allowed without a |
| 1155 | ``where`` clause, to prevent accidental mass deletions. |
| 1156 | |
| 1157 | """ |
| 1158 | return Delete(table=cls, force=force) |
| 1159 | |
| 1160 | @classmethod |
| 1161 | def create_table( |