Purge deleted records

Phase 1 preview — pages render fixture data only; no changes are saved.

What a purge would remove

Purging is switched off. ALLOW_DATA_PURGE is not true, so this install would refuse the request.
Soft-deleted records
13
Record typeSoft-deletedLive rows pointing at themRemoved with them Actions
Accessories10Check-out requests; Their activity log rows and attached files; image files
Activity log
Soft-deleted log rows are themselves purged.
Not previewed— attached files, signatures and EULA PDFs referenced by the rows
Assets20Maintenances; Check-out requests; External source links (sync adapters); Their activity log rows and attached files; image files
Asset models10Check-out requests; Their activity log rows and attached files; image files
Calendar eventsNot previewed— —
Categories00Their activity log rows; image files
Check-out acceptances00signatures and stored EULA PDFs
Check-out requests00—
Companies10Their activity log rows and attached files; image files
Components10Check-out requests; Their activity log rows and attached files; image files
Consumables10Check-out requests; Their activity log rows and attached files; image files
Departments10Their activity log rows and attached files; image files
Licenses10License seats; Check-out requests; Their activity log rows and attached files
License seatsNot previewed— —
Locations10Their activity log rows and attached files; image files
Maintenances10Their activity log rows and attached files
Maintenance types10—
Manufacturers00Their activity log rows; image files
OrdersNot previewed— —
Order itemsNot previewed— —
Report templates00—
Status labels00—
Suppliers00Their activity log rows and attached files; image files
Users
People hidden from lists (show_in_list = 0) are never purged.
10Their activity log rows and attached files; avatar images

Before a purge can run

RequirementState Actions
Signed in as a superuser
Every settings screen needs it.
Met
Purging is switched on
ALLOW_DATA_PURGE must be true in the environment; otherwise the request is refused and logged.
Not met
The demo lock is off
APP_LOCKED blocks the action.
Met
Typing DELETE
A confirmation field must equal DELETE exactly (case-sensitive).
Asked at the time
A backup is taken first
Legacy runs a backup, then purges even if the backup failed. A rebuilt version should stop instead.
Asked at the time