Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.37 KB

File metadata and controls

64 lines (42 loc) · 1.37 KB

Quick Delete Tasks Guide

🚀 Fastest Way (2 steps)

Step 1: Get Service Account Key

  1. Go to: https://console.firebase.google.com/project/proofly-prod-cb275/settings/serviceaccounts/adminsdk
  2. Click "Generate new private key"
  3. Save the downloaded file as service-account-key.json in the proofly folder

Step 2: Run Delete Script

cd proofly
node scripts/delete-all-tasks.js

That's it! All tasks will be deleted.


🔄 Alternative: Manual Deletion via Firebase Console

If you don't want to use the script:

  1. Go to: https://console.firebase.google.com/project/proofly-prod-cb275/firestore/data/tasks
  2. Click on each task document
  3. Click the three dots menu → Delete document
  4. Confirm deletion

🎯 What Happens After Deletion

  • ✅ All tasks removed from Firestore
  • ✅ App will show the hardcoded demo task
  • ✅ Companies can create new tasks
  • ✅ Students will see demo task until new ones are created

📝 Quick Commands

Delete only tasks:

node scripts/delete-all-tasks.js

Delete all data (tasks + submissions + receipts):

node scripts/delete-all-data.js

⚠️ Important

  • Deletion is irreversible
  • User accounts and companies are NOT deleted
  • Demo data will automatically appear when no real data exists

Need help? Check DELETE_DATA_GUIDE.md for more details.