Skip to content
MyAppBuilder
StableAction

Delete record

Overview

Permanently deletes one record after an optional confirmation prompt.

Purpose

Use it on “Delete” buttons in tables, cards and detail pages. Keep the confirmation message — deletions cannot be undone.

Inputs

  • Entity — the entity of the record.
  • Which record (id) — defaults to Current record › id.
  • Confirmation message — text of the browser confirmation dialog (default “Delete this record?”). Leave empty to delete without asking.

Configuration

  • Add Refresh data or rely on the automatic refresh of that entity's lists, then Go back or Close modal if the record's own page is open.
  • If the user cancels the confirmation, the whole action list stops — nothing after it runs.

Outputs

  • Last result — { id } of the deleted record.
  • Every action that returns something also updates last result (Action results › last result) and last result id (last.id), so the next action can use it without naming a result key.

Example

Delete from a detail page

Example
Button “Delete customer” › On click:
  1. Delete record
     Entity: Customers
     Which record (id): Page parameters › id
     Confirmation message: “Delete this customer and their history?”
  2. Go to page  Customers

Errors

  • “No record selected.” — the id is empty.
  • “Record not found.” — the record does not exist or is outside the user's own-records scope.
  • “Your role can't delete customers.” — no delete permission for the role.

Limitations

  • Linked records are not deleted or unlinked automatically; relation fields on other records keep the old id.
  • Deletes one record per action.

Advanced

  • Schema: { type: "delete_record", entityId, recordId: Binding, confirm? }. The confirmation uses window.confirm in the browser; the deletion runs on the server and fires record_deleted workflows.

Related

Was this helpful?