const fs = require('fs');
const files = [
  'find-all-o-vouchers.js',
  'print-mapped-code.js',
  'print-ze.js',
  'find-store-fetch.js',
  'print-load-effect.js',
  'find-vouchers-effect.js',
  'find-sync-hotspot-users.js',
  'print-sync-func.js',
  'find-vouchers-endpoints.js',
  'find-used-status.js',
  'search-php.js',
  'print-payment-callback.js',
  'find-generate-voucher-php.js',
  'print-tripay.js',
  'view-voucher-generator.js',
  'find-all-filters.js',
  'print-disconnect-flow.js',
  'print-kick-lines.js',
  'print-kick-lines-2.js',
  'apply-vouchers-date-fix.js',
  'apply-kick-fix.js',
  'print-server-sync.js',
  'print-server-sync-2.js',
  'print-server-sync-3.js',
  'clean-scripts.js'
];
files.forEach(f => {
  if (fs.existsSync(f)) {
    fs.unlinkSync(f);
    console.log(`Deleted ${f}`);
  }
});
