connection_delete: Delete a record from a table

View source: R/crud.R

connection_deleteR Documentation

Delete a record from a table

Description

Deletes a record from a table. Supports soft-delete pattern where records have a deleted_at column. Hard-delete can be forced with soft = FALSE.

Usage

connection_delete(conn, table_name, id, soft = TRUE)

Arguments

conn

Database connection

table_name

Name of the table

id

The ID of the record to delete

soft

Whether to use soft-delete if available (default: TRUE)

Value

Number of rows affected


framework documentation built on Feb. 18, 2026, 1:07 a.m.