Danger Zone

The Danger Zone contains irreversible actions that permanently affect your class. These operations cannot be undone. Proceed with extreme caution.

🚫 Warning: Irreversible Actions

All actions in the Danger Zone are permanent and cannot be reversed. Once data is deleted, it cannot be recovered. Make sure you have exported any data you need before proceeding.

🗑️ Delete Class

Deleting a class permanently removes all class data, including:

  • Class metadata: Title, description, settings
  • Student enrollments: All enrollment records
  • Student progress: All xAPI statements for this class
  • Content cache: All pre-generated content
  • Analytics data: All performance metrics

Prerequisites for Deletion

⚠️ Students Must Be Removed First

You cannot delete a class that has enrolled students. You must remove all students from the class before deletion is allowed.

How to Delete a Class

Step 1: Remove All Students

Go to the Students section and remove all enrolled students from the class. This protects against accidental deletion of active classes.

Step 2: Export Important Data

Before deleting, export any data you want to keep:

  • Export content to PDF/QTI format
  • Download analytics reports
  • Export student records if required

Step 3: Navigate to Danger Zone

In Class Management, scroll to the bottom and click on "Danger Zone" in the sidebar.

Step 4: Click Delete Class

Click the "Delete This Class" button. You will be prompted to confirm the action.

Step 5: Confirm Deletion

Type the class name or ID to confirm you want to delete it. This prevents accidental deletions.

What Happens After Deletion

  • Class is immediately removed from your dashboard
  • All enrolled students lose access
  • Content cache in GCS is deleted
  • xAPI statements are voided (marked as deleted)
  • Content experts lose access
💡 Note on xAPI Data

Due to the immutable nature of xAPI, statements are not physically deleted but rather voided. This means they won't appear in queries but may still exist in your LRS for compliance purposes.

🔄 Alternatives to Deletion

Before deleting a class, consider these alternatives:

📦

Archive the Class

Instead of deleting, you can archive the class by:

  • Removing all students
  • Hiding enrollment options
  • Renaming with "[ARCHIVED]" prefix

This preserves data for future reference.

🔄

Transfer Ownership

If you're leaving or no longer need the class, transfer ownership to another teacher instead of deleting.

Learn about ownership transfer →

📋

Copy and Reset

If you want a fresh start, consider:

  • Create a new class with same DSC
  • Copy content settings
  • Archive the old class

🔌 API Reference

🚫 Dangerous API Endpoint

This endpoint permanently deletes a class. Use with extreme caution.

HTTP Request
DELETE /api/school/class/:classId
Authorization: Cookie (httpOnly)

// Response
{
  "success": true,
  "message": "Class deleted successfully",
  "deletedClassId": "class-abc123"
}

Error Responses

400 Bad Request - Has Students
{
  "success": false,
  "error": "Cannot delete class with enrolled students. Remove all students first."
}
403 Forbidden - Not Owner
{
  "success": false,
  "error": "Only the class owner can delete the class"
}

🔧 Recovery Options

⚠️ Limited Recovery

Once a class is deleted, recovery options are extremely limited. Prevention is always better than recovery.

What CAN Be Recovered

  • Exported content: If you exported before deletion
  • GCS backups: If your GCS bucket has versioning enabled
  • LRS voided statements: May be recoverable by LRS admin

What CANNOT Be Recovered

  • Class configuration: Settings, enrollment codes
  • Student enrollments: Who was in the class
  • Real-time data: Unless backed up externally

Contact Support

If you accidentally deleted a class and need recovery assistance, contact your system administrator immediately. Time is critical for any potential recovery.

Best Practices

✅ Before Deleting
  • Export all content (PDF, QTI, Blackboard format)
  • Download student analytics reports
  • Confirm with co-teachers or content experts
  • Consider archiving instead of deleting
  • Double-check you're deleting the right class
⚠️ Don't Delete If...
  • Students might need access to their progress
  • You need the data for accreditation
  • Other teachers are using the content
  • You might want to reuse the class next semester