const fs = require('fs');
const path = require('path');

const pageToDelete = path.join(__dirname, '..', 'app', 'admin', 'generation-tickets');

console.log('🗑️  Suppression de la page génération tickets...\n');

try {
  if (fs.existsSync(pageToDelete)) {
    fs.rmSync(pageToDelete, { recursive: true, force: true });
    console.log('✅ Page "generation-tickets" supprimée');
  } else {
    console.log('⚠️  Page déjà supprimée');
  }
} catch (error) {
  console.error('❌ Erreur:', error.message);
}

console.log('\n✨ Terminé!');
