<?php
require_once '../../engine/engine.php';

$id = (int)($_POST['id'] ?? 0);
if ($id > 0) {
	$stmt = $pdo->prepare("DELETE FROM scan_results WHERE id = ?");
	$stmt->execute([$id]);
	echo "ok";
} else {
	http_response_code(400);
	echo "Ungültige ID";
}