Skip to content

Force-delete action

ForceDeleteAction permanently destroys a soft-deleted (or protected) record. Defaults: name force_delete, label Force delete, trash icon, danger color, confirmation on.

app/orbit/resources/post_resource.py
from almasix.orbit.actions import ForceDeleteAction
ForceDeleteAction.make().action(lambda record, **_: force_delete(record))

Orbit ForceDeleteAction (light)

Orbit ForceDeleteAction (dark)

Default modal copy:

  • Heading: Force delete?
  • Description: This permanently removes the record and cannot be undone.

ForceDeleteBulkAction is the same preset for selected rows (bulk toolbar).

app/orbit/resources/post_resource.py
from almasix.orbit.actions import ForceDeleteBulkAction
table.bulk_actions([
ForceDeleteBulkAction.make().action(lambda records, **_: force_delete_many(records)),
])

Orbit ForceDeleteBulkAction (light)

Orbit ForceDeleteBulkAction (dark)

Typical trashed-table row actions:

app/orbit/resources/post_resource.py
from almasix.orbit.actions import RestoreAction, ForceDeleteAction
table.actions([
RestoreAction.make(),
ForceDeleteAction.make(),
])

See Restore for the counterpart and Delete for soft delete.