DocsWorkflowsComponentsAppapp:record:delete

app:record:delete

Soft-deletes a record by setting its deleted_at timestamp

Options

NameTypeDescription
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:
      schema: content
      table: articles
      id: "{{ var.id }}"