Skip to content

D39 · Vehicles are retired, never deleted in the app

Accepted · 2026-10-14 · zuki

Decision: No one deletes a vehicle in the app. A car that leaves the fleet becomes inactive. Removing a record for good is not an app action; the way to do it is decided on #147.

Why: The higher-ups don't want business data to disappear through a delete (#144). In V13 a car that anything refers to can't be deleted anyway (R-CONV-11), so the delete only ever worked for a car with no history; a status gives everyone one way to retire a car.

Consequences:

  • inactive is a vehicle status, with no reason code. The vehicle:delete permission is removed.
  • A plate is unique among cars that aren't inactive. A retired car keeps its plate for its history; reactivating it is refused when the plate has since been used.
  • Temporary plates (those the police issue for cars not yet registered) sit on a short list in master data, and only those may be on several cars at once. They can be used again for the next car.
  • ETLE scans every car that isn't inactive (R-ETLE-03), and lists and the fleet monitor hide inactive cars unless asked.
  • The audit log keeps the record of every status change, and nightly backups keep the rest (D16).