DocsWorkflowsComponentsAppapp:record:delete

app:record:delete

Soft-deletes a record by setting its deleted_at timestamp

Options

NameTypeDescription
org_idstringThe organization ID that scopes the operation
user_idstringThe caller's user ID recorded in the record history
schemastringThe name of the schema (database) that contains the table
tablestringThe name of the table that contains the record
idstringThe unique identifier of the record to soft-delete

Outputs

NameTypeDescription
idstringThe unique identifier of the deleted record

Example

name: Delete a record
actions:
  - name: deleted
    component: app:record:delete
    vars:
      org_id: "{{ var.org_id }}"
      user_id: "{{ var.user_id }}"
      schema: content
      table: articles
      id: "{{ var.id }}"