<?php
require "config.php";
header("Content-Type: application/json");

if (isset($_SESSION["user_id"])) {
    $pdo->prepare("DELETE FROM team_queue WHERE user_id = ?")
        ->execute([$_SESSION["user_id"]]);
}

echo json_encode(["success" => true]);
?>