Concept
Soft deletion
A DELETE operation in Codemeta OS does not physically remove data.
Instead, two fields are set:
deletedAt– timestamp of the deletiondeletedBy– ID of the user who triggered the deletion
Such records are invisible in normal lists – list endpoints automatically filter out deleted records. Audit entries remain fully preserved.
Why?
- Compliance. Evidence obligations often require that data can still be reconstructed after an incident.
- Accidental deletions. A soft delete can be undone.
- Consistency with the audit trail. If audit entries are retained, the referenced entities must also remain findable – otherwise patches point to nothing.
Restore
A deleted entity can be restored by a PATCH with { "deletedAt": null },
provided the account has the
corresponding permission.