?
db.remove
Delete one row by id. Reports whether a row was removed.
Table.remove(id) → Mutation<{ deleted: boolean }>
Deletes the row with the given id and reports whether a row was removed. It is a Mutation, so it batches with other writes through db.batch. To delete by condition rather than id, use db.removeAll.
Parameters
id
string
RequiredThe row id.
Delete by id
const { deleted } = await Vendors.remove(id);