<?php
$host   = 'localhost';
$dbname = 'jediprimeaqsspro';
$user   = 'root';
$pass   = '';

try {
    $pdo   = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8mb4", $user, $pass);
    $count = $pdo->query("SELECT COUNT(*) FROM xtralog_products")->fetchColumn();
    $pdo->exec("DELETE FROM xtralog_products");
    echo "<h2 style='font-family:monospace;color:green'>✅ Deleted {$count} products from xtralog_products.</h2>";
    echo "<p style='font-family:monospace'>Delete this file after use.</p>";
} catch (Exception $e) {
    echo "<h2 style='color:red'>Error: " . $e->getMessage() . "</h2>";
}
