['regexp' => $fileNameRegex], "flags" => FILTER_NULL_ON_FAILURE]); if (!$name) { die("Paramètre manquant ou incorrect : name"); } $path = "$SCANSDIR/$name.xml"; if (!file_exists($path)) { die("Scan inconnu : $name"); } unlink($path); header('Location: .');