Skip to content

DeleteBuilder

DeleteBuilder = object

Defined in: packages/db/src/types.ts:530

Builder for delete operations on a single table.

Returned by db.delete(table). Chain .where() to add a condition, and optionally .returning() to get the deleted row back.

await db.delete(posts).where(eq(posts.id, "abc-123")).run({});

where: (condition) => DeleteReturningBuilder

Defined in: packages/db/src/types.ts:532

Specifies the WHERE condition (AND’d with permission filters at .run() time).

unknown

DeleteReturningBuilder