Custom software / record lifecycle

Archive, delete or restore: what should happen to a business record?

Removing a customer, job or project from a list can affect its linked work and history. Before approving a system, define whether the action hides a record, prevents new use, removes it, or allows a controlled return.

This is general software-buying guidance with fictional examples, not a retention policy, legal advice or a claim about a delivered Flextech feature. The business must confirm its actual record-keeping requirements and who has authority to apply them.

1. Make the button's meaning explicit

“Delete” and “archive” are interface labels, not complete requirements. Ask what changes in stored data, who can still see the record, whether it can still be selected for new work, and whether the action is reversible.

  • Archive or deactivate: a record may remain available for permitted historical review while being unavailable for new assignments. Agree the actual behavior rather than assuming this meaning from the label.
  • Mark as deleted: an implementation may retain a row but hide it from ordinary views. Retention is not proof that a restore feature exists, and hiding is not erasure.
  • Permanently remove: define what is removed, what related material remains and whether recovery is possible under the separately agreed arrangements. Do not imply that an Undo button or backup can always reverse it.

Keep the decision separate from the whole-system backup and restore checklist. Restoring one archived record through an application and recovering a system from a backup are different operations with different consequences.

2. Follow the links before changing the parent record

In a fictional system, customer C-42 has two open jobs and three completed visits. The customer stops requesting new work. Archiving C-42 might appropriately prevent a new booking while preserving the existing jobs and permitted visit history, but that is a rule for the buyer and implementer to agree.

Ask what happens to each related item: open work, completed work, attachments, notes and any references in reports. Does the system block the action until open work is resolved, retain a historical reference, detach an optional relationship, or apply another approved rule? Never let a database default decide the business outcome without review.

Fictional acceptance result: C-42 is no longer offered in the new-job selector; the two open jobs remain visible to their authorized staff; the three completed visits still identify their original customer. If the chosen policy is different, replace this expected result before testing.

Use the client, site and equipment history guide when the relationship itself needs defining. This article concerns lifecycle changes, not how to identify the original client or unit.

3. Returning a record needs its own checks

Restoring a previously hidden record can create a new conflict. Someone may have created a replacement customer with the same reference, a related job may have changed, or the original user's access may have ended. A restore should not silently merge two customers or grant old permissions again.

  • Confirm which exact record and related objects will return.
  • Check the identifier and any replacement record before proceeding.
  • Decide which previous relationships remain valid and which need review.
  • State who can approve the restore, and what happens if the current conditions do not permit it.
  • Inspect the result through the ordinary user view as well as the stored record.

Permission to view historical work is not necessarily permission to delete or restore it. Record those actions separately in the roles and permissions matrix.

4. Test the agreed lifecycle with invented records

Use an approved isolated test setup. Do not remove real customer records to try this checklist.

  1. Archive with no open work: check ordinary search, historical viewing and new-record selectors against the agreed rule.
  2. Archive with open work: verify the visible warning or block and what happens to the pending jobs. An action that is refused must not partially change the related records without an explicit outcome.
  3. Open an old direct link: establish what an authorized reader sees after archiving and what an unauthorized reader sees. Hidden from a list does not by itself establish access control.
  4. Attempt deletion with dependants: inspect the exact records affected. Confirm whether the action is blocked or applies the explicitly agreed relationship behavior.
  5. Restore after a replacement exists: check that an identifier clash or conflicting relationship is surfaced for review rather than silently guessed.
  6. Cancel before confirmation: verify that nothing changed, then reload and inspect the original record. Do not judge the outcome only by a disappearing dialog.

For every case, keep the record IDs, initial state, authorized role, requested action, expected related-record result and actual result. Include a failed case in acceptance; a working happy-path archive button is not sufficient.

5. Bring a one-page lifecycle brief

Questions to settle

Record type and linked objects: __________

Meaning of archive, delete and restore: __________

Open-work and historical-view rule: __________

Authorized decision-maker and unresolved policy questions: __________

Reversal limits and required acceptance evidence: __________

Microsoft's EF Core documentation illustrates marking a row as deleted and filtering it from normal queries. Its relationship guidance explains why deleting a parent can affect dependent records. These are implementation examples, not recommendations for your business's retention period or proof of a finished recovery feature.

Microsoft: global query filters and soft deletion · Microsoft: cascade delete and relationships.

Define the record lifecycle before building

Share the record types, linked work and outcomes you need with Flextech. A scoped discussion can separate software behavior from the business policies that still need confirmation.

Discuss a workflow ↗
WhatsApp