<?php
require __DIR__ . '/vendor/autoload.php';
$app = require __DIR__ . '/bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();

$slugs = [
    'agco-ag-agricultural-all-database-south-america-sa',
    'agco-electronic-diagnostic-tool',
    'allison-diagnostic-optimized-connection',
    'bobcat-advanced-troubleshooting-system',
    'bobcat-engine-analyzer-dcu',
];

$products = \DB::table('products')->whereIn('slug', $slugs)->get();
foreach ($products as $p) {
    echo "Deleting: {$p->name} ({$p->slug})\n";
}
$count = \DB::table('products')->whereIn('slug', $slugs)->delete();
echo "Deleted {$count} products\n";
