Data Retention & Deletion

VivaEdu implements data minimization through automatic deletion. This page details retention schedules, deletion procedures, and configuration options for instructors, administrators, and compliance officers.

Summary

  • Media files (audio/video) deleted 90 days after assignment due date
  • All records purged 180 days after assignment due date
  • Retention periods are configurable by administrators
  • All deletion operations are audit logged
  • Automatic cleanup runs daily at 03:00 UTC

Default Retention Periods

The following retention periods apply by default. Administrators can adjust these values via the admin console.

Data TypeRetention PeriodAfter Assignment Due Date
Student audio recordings90 daysDeleted from S3
Student video recordings90 daysDeleted from S3
Instructor video prompts90 daysDeleted from S3
Instructor video feedback90 daysDeleted from S3
Transcripts180 daysDeleted from database
Session data180 daysDeleted from database
Assignment records180 daysDeleted from database
Audit logs365 days (default)Deleted by worker
Inactive classes180 daysArchived (if enabled)

Note: Audit log retention is configurable from 30 to 3,650 days (10 years). Institutions with Data Processing Agreements requiring longer retention should configure accordingly.

What Gets Deleted at 90 Days

The 90-day deletion removes media files while preserving transcripts and academic records:

  • Response audio files: .webm and .mp3 recordings from student responses
  • Response video files: Video recordings (if video mode was enabled)
  • Derived video files: Safari compatibility versions (derived-video/)
  • Captioned video derivatives: Videos with burned-in captions (derived-video-captions/)

When media is deleted, the audioDeletedAt and videoDeletedAt timestamps are set on the response record. Transcripts, grades, and session metadata are retained at this stage.

What Gets Deleted at 180 Days

The 180-day purge removes all remaining assignment data:

  • Essays: Uploaded files and database records
  • Viva sessions: All student session records
  • Questions: Per-session question instances
  • Responses: Any remaining response records
  • Teacher responses: Grades, feedback, and rubric scores
  • Question pools: Assignment question pool items and images
  • Context cards: PDF and image files students viewed during the viva
  • Assignment record: The assignment configuration itself

What Is Retained

  • Grade records: May be retained per institutional policy (separate from VivaEdu)
  • Audit logs: Retained per configured retention period (default 365 days)

Retention Configuration

Administrators can configure retention settings via the Admin Console under Governance → Retention.

Configurable Settings

SettingDefaultRangeDescription
Media Delete Days901 - 3,650Days after due date to delete audio/video
Purge Days1802 - 3,650Days after due date to delete all records
Audit Log Retention Days36530 - 3,650Days to retain audit logs
Auto Archive Inactive ClassesOffOn / OffArchive classes with no activity

Configuration Constraints

  • Purge days must exceed media delete days: The full purge cannot occur before media deletion
  • Audit log retention minimum: 30 days (cannot be set lower for compliance purposes)
Policy
Stored in DB
90

Deletes student audio/video after this many days past assignment due date.

180

Deletes assignment records, essays, sessions, and responses after this many days past the due date.

365

Minimum 30 days. Cleanup is performed by the retention worker.

Automatic Deletion Schedule

VivaEdu runs a retention worker that automatically processes deletions on a scheduled basis.

ScheduleDaily at 03:00 UTC
Cron Expression0 3 * * *
Job Nameretention-sweeper
Queueretention

Worker Actions

  1. Find assignments with due date + 90 days passed → delete media files
  2. Find assignments with due date + 180 days passed → purge all data
  3. Archive inactive classes (if auto-archive is enabled)
  4. Delete audit logs older than the retention window

Manual Deletion Options

Teacher-Initiated Deletion

ActionWhat Gets DeletedAudit Log Action
Delete AssignmentAll data for that assignmentRETENTION_PURGE_ASSIGNMENT
Archive ClassAll assignments in the classRETENTION_PURGE_CLASS

Both actions require confirmation before execution and are logged to the audit system.

Admin-Initiated Cleanup

Administrators can trigger immediate cleanup via the "Run cleanup now" button in the Admin Console. This processes all pending deletions immediately rather than waiting for the next scheduled run.

Student-Initiated Deletion

  • Students can request account deletion via Settings → Delete Account
  • Request is sent to jex@vivaedu.co.uk
  • Processed within 30 days
  • Logged as GDPR_ACCOUNT_DELETION_REQUESTED

Class Archiving

When auto-archive is enabled by an administrator:

  • Classes with no assignment activity for 180 days are identified
  • All assignments within archived classes are purged
  • Class record is marked inactive
  • This feature is disabled by default and must be explicitly enabled

Demo Data Retention

Demo environments have special retention rules to ensure temporary data is cleaned up promptly:

Demo Data Expiration2 hours after creation
Cleanup FrequencyEvery 15 minutes
ScopeAll data with matching demoTenantId

Demo cleanup includes: users, classes, assignments, sessions, questions, responses, and all media files.

Audit Logging of Deletions

All deletion operations are recorded in the audit log:

ActionLog EntryMetadata
Media deletionRETENTION_DELETE_AUDIOResponse count
Assignment purgeRETENTION_PURGE_ASSIGNMENTAssignment ID
Class purgeRETENTION_PURGE_CLASSPurged assignment count
Audit log cleanupRETENTION_AUDIT_LOGS_CLEANUPDeleted count, cutoff date

Data Deletion Verification

To verify that data has been deleted:

  • Audit logs: Check for deletion action entries with timestamps and metadata
  • S3 objects: Objects are permanently removed from storage
  • Database records: Records are permanently deleted (not soft-deleted)
  • Response timestamps: audioDeletedAt and videoDeletedAt fields confirm media deletion

Important Notes

Deletion is Permanent

  • Deleted data cannot be recovered
  • Export data before deletion if records are needed for long-term retention
  • Grade records may be retained per institutional policy (separate from VivaEdu)
  • Audit logs are retained for compliance purposes per the configured retention period

Institutional Policy: Your institution may have specific retention requirements beyond VivaEdu defaults. Contact your institution's data protection officer for guidance on appropriate retention periods and any export requirements before data is automatically deleted.

Retention Timeline

Due Date
90 days
Media Deleted
90 days
Full Purge
Assignment due date (retention countdown begins)
90 days: Audio and video files deleted, transcripts retained
180 days: All assignment data permanently deleted

Related Topics

Questions

For questions about data retention or to discuss custom retention requirements for your institution, contact jex@vivaedu.co.uk.

Comments

Leave a comment, question, or feedback. Comments are public — please don’t include personal data.

Loading comments…