prepare("DELETE FROM appointments WHERE id = ? AND reason = 'Test API'"); $stmt->execute([$id]); echo "Deleted test appointment $id (if it matched).\n";