Skip to content

app.trash_items

View

Trash (Section 4.10): soft-deleted rows of the tables in private.trash_tables, read with the reader's own row level security. A view over the rows, never a copy. Restore through app.restore_trash_item until purge_after.

Columns of app.trash_items
ColumnTypeNullableDescription
subject_urntextYesurn:xpms:{table}:{id} of the deleted row.
subject_tabletextYesTable of the deleted row.
subject_iduuidYesId of the deleted row.
org_iduuidYesOrg of the deleted row.
project_iduuidYesProject of the deleted row, when its table has one.
titletextYesWhat the row is called, from its title column.
deleted_attimestamp with time zoneYesWhen it was deleted.
deleted_byuuidYesPerson who deleted it (the last writer).
purge_aftertimestamp with time zoneYesWhen the retention purge removes it for good; it can be restored until then.