<?php
require_once __DIR__ . '/db/config.php';
$db = db();
// Delete the test appointment created by test_create_appointment_curl.php (ID 14)
// Use a safe check to only delete if it looks like a test
$id = 14; 
$stmt = $db->prepare("DELETE FROM appointments WHERE id = ? AND reason = 'Test API'");
$stmt->execute([$id]);
echo "Deleted test appointment $id (if it matched).\n";

