Skip to main content

How do I set up student data deletion and retention for a research app?

Write a retention schedule before the pilot starts. Build one scripted deletion job keyed to district and student IDs, and let backups expire on a fixed cycle, typically 30 to 90 days. Then send a signed certification-of-destruction letter. Your institution’s counsel or compliance office approves the schedule and the letter.

The checklist

Five things have to exist before a district can trust your deletion promise. Build them before the first teacher logs in. Adding them after a deletion request arrives means writing deletion code under a deadline, against data you have never mapped.

Item What it contains Who approves it
Retention schedule Every data type, where it lives, how long it is kept, and what triggers deletion PI, IRB, institution’s counsel or compliance office
Deletion on request A tested script that removes one student, one school or one district everywhere PI, after a test run on a copy
Backups and logs Fixed expiry cycles and a written statement of what they still hold Engineering lead, disclosed to the district
Certification of destruction A signed letter listing what was deleted, when, and what remains until a stated date Counsel or compliance office, signed by the PI or company officer
Funder conflicts Which records must be kept or shared, and in what de-identified form Counsel, program officer, IRB

Writing the retention schedule

Start with a data map: every table, file bucket, analytics tool, log stream and third-party service that touches a student record. A typical research app has more places than the PI expects, including the model provider if the app sends student text to an AI API, the error-tracking tool, and spreadsheets exported for analysis.

For each data type, write three things: how long it is kept, what event ends that period, and what happens at the end (deleted, de-identified, or archived). Tie the triggers to dates you can check, such as the end of the school year, the end of the data use agreement, or the grant’s closeout.

  • Identifiable student records: kept until the data use agreement ends or the district requests deletion, whichever is first
  • Roster data from the district: deleted at the end of each pilot year
  • De-identified research dataset: kept for the period the IRB protocol and funder require
  • Application logs: 30 days, with student IDs pseudonymized
  • Backups: one fixed cycle, stated in days

Under FERPA’s studies exception, the written agreement with the district must require that personally identifiable information be destroyed when it is no longer needed for the study, and must say when. Your schedule should match the agreement word for word on that point. Counsel or the compliance office signs off on the schedule; we build to it, we do not interpret the law.

Building deletion on request

Deletion only works if every record carries a district ID and a student ID from the start. With those, one job can find and remove everything for a student, a school or a district. Without them, deletion becomes a manual search that misses files.

  1. Confirm the request in writing: which students, schools or district, and whether they want an export first
  2. Run the deletion job against a copy of production and compare record counts before and after
  3. Run it on production, including file storage, search indexes and analytics exports
  4. Ask third-party processors to delete their copies, and keep their confirmations
  5. Write the job’s output to a deletion log that records counts and timestamps, not student names

Building this into an existing app is typically 20 to 40 engineering hours, more if student IDs were never stored consistently. Reliability matters here for the same reason it matters for the study: when we stabilized an NSF-funded React/Firebase research platform used across several universities, we made saving and loading student work 100% reliable, and the same discipline is what makes a deletion job trustworthy.

Backups, logs and a worked example

Most teams cannot delete one student from a database backup, and should not try. The accepted approach is to let backups expire on their cycle and tell the district the date the last copy disappears. If a backup is restored before then, the deletion job runs again before the system goes live.

Logs are the usual gap. Keep student names and emails out of logs entirely, use pseudonymous IDs, and set the log retention to a fixed number of days so old entries age out without anyone acting.

A district asks to delete everything, with a 30-day backup cycle

Day Step
0 Request received; scope confirmed in writing
1–4 Export prepared and returned, if the district asked for one
5 Deletion job tested on a copy, then run on production; processors notified
5 Live records gone; logs already pseudonymized
35 Last backup containing the data expires
36 Certification-of-destruction letter sent

The certification-of-destruction letter

Districts often ask for this letter, and some data use agreements require it. It should be short and factual. Your compliance office may have a template; use theirs if so.

  • The agreement it relates to, and the request date
  • The categories of data deleted and the systems they were deleted from
  • The date of deletion and the method
  • Third parties notified, with their confirmation dates
  • What remains, such as backups, and the date it expires
  • Any de-identified data retained, and the basis for keeping it
  • Signature of the PI or a company officer

When funder rules conflict with deletion

Funders want data kept and shared; districts want it deleted. Federal awards generally require keeping financial and programmatic records for three years after the final financial report (2 CFR 200.334), and NSF and IES both expect a data management or data sharing plan. IRB protocols and institution policy often set their own retention period as well.

The usual resolution is to separate identity from research data. Prepare the de-identified dataset the funder expects before identifiers are destroyed, keep it under the terms the agreement allows, and delete the link between pseudonymous IDs and real students. Whether a given dataset is de-identified enough to keep is a call for counsel and the IRB, made before the data use agreement is signed, not after.

Frequently asked questions

Do I have to delete backups when a district asks me to delete student data?
Usually the accepted practice is to let backups expire on a fixed cycle rather than edit them, and to tell the district the date the last copy disappears. If a backup is restored before then, the deletion job must run again first. Your data use agreement and counsel decide whether that is acceptable for your study.

Can I keep de-identified data after the district asks me to delete everything?
Often yes, if the data use agreement and IRB protocol allow it and the data is truly de-identified. Prepare that dataset before identifiers are destroyed, and delete the key linking pseudonymous IDs to students. Counsel and the IRB make the call on whether it qualifies.

What should a certification-of-destruction letter include?
The agreement and request date, the data categories and systems deleted, the deletion date and method, third parties notified, and anything that remains with its expiry date. It is signed by the PI or a company officer. Use your compliance office’s template if it has one.

How long does it take to add a deletion feature to an existing research app?
Typically 20 to 40 engineering hours when records already carry consistent district and student IDs. It takes longer when IDs are missing or student data is spread across exported spreadsheets and third-party tools. A data map done first tells you which case you are in.

Who actually does the work if we hire Smplfy?
Charlie Meng scopes every project and makes the architecture calls, and Smplfy’s own engineers build it. The first project has a fixed scope, and you read a written scope before committing. A retainer starts only if you choose one.

Planning a pilot that handles student data?

We offer a free 30-minute review of your pilot plan or the technical section of your proposal, including retention and deletion. Bring the prototype’s repository or a demo, the pilot timeline, and your data use agreement or funder requirements. Start a conversation.