Force-delete action
Introduction
Section titled “Introduction”ForceDeleteAction permanently destroys a soft-deleted (or protected) record. Defaults: name force_delete, label Force delete, trash icon, danger color, confirmation on.
from almasix.orbit.actions import ForceDeleteAction
ForceDeleteAction.make().action(lambda record, **_: force_delete(record))

Default modal copy:
- Heading: Force delete?
- Description: This permanently removes the record and cannot be undone.
Bulk force-delete
Section titled “Bulk force-delete”ForceDeleteBulkAction is the same preset for selected rows (bulk toolbar).
from almasix.orbit.actions import ForceDeleteBulkAction
table.bulk_actions([ ForceDeleteBulkAction.make().action(lambda records, **_: force_delete_many(records)),])

Soft-delete workflow
Section titled “Soft-delete workflow”Typical trashed-table row actions:
from almasix.orbit.actions import RestoreAction, ForceDeleteAction
table.actions([ RestoreAction.make(), ForceDeleteAction.make(),])