Keeping and deleting records
How long decision records are kept, how a hold keeps them longer, how one is deleted, and the audit log that says who did what. Written for counsel, compliance, records and audit teams.
#In short
- A retention period. Records are kept until someone deletes them, unless you set a period. Kaimei then deletes what is older, model by model.
- Holds. A hold keeps one decision, or everything a model has logged, whatever the period says, until someone who answers for the records releases it.
- Deleting one record. A decision can be deleted on request. The audit log keeps that it was, by whom and why.
- The audit log. Who signed in, who changed what, every approval, hold and deletion, written with the change and not editable.
Not legal advice How long to keep a record, and when one must be held or erased, are decisions for you and your counsel. Kaimei carries them out and records that it did. This is not legal advice.
#A retention period
Open Retention under Compliance. An owner or admin sets the organization's period in days, and may give a model a period of its own, longer or shorter, or mark it as kept until deleted. The page shows, for each model, the period that applies, how many decisions it holds, when the oldest was logged, and how many are due for deletion now.
Setting a period deletes nothing by itself. Kaimei applies the schedule a few times a day; Apply the schedule now says how many decisions it will delete and asks before it does. A record's age is counted from when it was logged. The shortest period Kaimei accepts is 30 days.
| A schedule deletes | A schedule never deletes |
|---|---|
| Logged decisions older than the period, with every explanation of them and what was recorded as decided. | Models, their reference data and structure. |
| Explanations older than the period that belong to no logged decision. | Analyses, insights and reason tables, including retired versions. |
| The audit log, and anything under a hold. |
Each time the schedule deletes a model's records, the audit log gains an entry: how many decisions and explanations, of which model, logged before when, under which period.
#Holds
A hold is an instruction to keep records until it is released: a complaint is open, an audit has asked for a sample, a dispute may follow. Place one from a decision's record, or from Retention for one decision or for every record of a model. It takes a reason, and can carry your own matter or case number.
- The schedule skips what a hold covers.
- Nobody can delete a held decision or one of its explanations, by hand or through the API.
- A model with a hold on its records cannot be deleted, and nor can the organization.
- Several holds may cover the same record, one for each matter. It is kept until all of them are released.
Members, reviewers, admins and owners may place a hold. A reviewer, admin or owner releases one. A released hold stays in the list, with who released it and when; what it covered is deleted at the schedule's next run if it is older than the period.
#Deleting one record
A record's Delete this decision removes the logged decision, every explanation of it and what was recorded as decided. It is for an erasure request, or for something logged by mistake. It cannot be undone, and it is refused while a hold covers the record.
Nothing of the decision is kept except one entry in the audit log: its id, when it was logged, who deleted it and when, the reason they gave, and the fingerprint its record had. The fingerprint lets a copy filed earlier, such as a PDF, still be matched to the entry. Copies you saved outside Kaimei are yours to delete.
A record deleted in the month it was logged still counts toward that month's plan limits.
#The audit log
Open Audit log under Compliance. Each entry says when, who, and what happened in a sentence, and opens to what changed: the fields, with the values before and after where they are short enough to show.
| Entered | For example |
|---|---|
| Sign-ins and keys | Signed in. Created the API key “Scoring pipeline”. Revoked it. A key's secret is never entered. |
| People and roles | Invited someone as reviewer. Changed a role from member to admin. Removed someone from the organization. |
| Models | Registered, changed, deleted or transferred a model, or replaced its structure. A change to a model's threshold shows the threshold before and after. How a model is reached is named and never shown, since it may hold credentials. |
| Reason tables | Saved a draft. Approved version 3. Version 2 was retired by its successor. |
| Decisions | Had a decision explained. Recorded or amended what was decided. Deleted a decision, with the reason given. |
| Holds and retention | Placed or released a hold. Set a period. The retention schedule deleted 311 decisions of a model, logged before a date. |
An entry made by an API key names the key; one made by Kaimei itself, such as the schedule, says so. The log can be narrowed by what happened, by who, by model and by date, and Export as CSV saves what is shown as a spreadsheet.
Owners, admins and reviewers read the log. Logging a prediction, computing an explanation and running an analysis are not entered, since each is a record of its own with its time; nor is reading.
An entry is written in the same step as the change it describes, so there is no change without its entry. No part of the dashboard or the API edits or deletes one, and no retention schedule removes them. The log begins when your organization first ran a Kaimei with an audit log: nothing done before then is in it.
#Doing it in code
For the engineers on your team. A pipeline can record what was decided as it logs each decision, place a hold when a complaint is opened, and delete a record when an erasure request is granted.
Setting the period and releasing a hold take a signed-in owner, admin or, for a hold, reviewer. The calls are in the Retention and holds and audit log reference.
# what the schedule would delete now
schedule = client.retention.retrieve()
for item in schedule.models:
print(item.model.name, item.keep_days, item.due.decisions)
# a complaint is opened: keep the record
client.retention.place_hold(
decision="LOAN/2026/0042",
reason="Customer complaint under review",
matter="CASE-2026-0117",
)
# an erasure request is granted
client.decisions.delete("APP-2026-00420", reason="Erasure request ER-2026-031")
# what was done to one decision
for entry in client.audit_log.iterate(target_type="decision", target_id="LOAN/2026/0042"):
print(entry.at, entry.actor.name, entry.summary)Credit risk scorer 760 311
Fraud screening encoder 2557 0
2026-10-30T14:02:11Z Riley Counsel ([email protected]) Placed a hold on “LOAN/2026/0042”: Customer complaint under review.
2026-10-28T09:15:40Z Dana Lee ([email protected]) Recorded what was decided for “LOAN/2026/0042”: declined.#What stays with you
- The period. Rules differ by decision, sector and country, and some set a least time and others a most. Kaimei applies the period you choose.
- Knowing when to hold. Kaimei cannot know that a complaint or a dispute has begun. Someone has to place the hold, and release it when the matter ends.
- Copies elsewhere. Deleting a record in Kaimei does not delete a PDF you saved, a row in your warehouse or a backup you keep.
- The log as evidence. Entries cannot be changed through the dashboard or the API. They are not signed or sealed by a third party; export the log on your own schedule if your policy asks for an independent copy.