<?php
header('Content-Type: application/json');
require_once __DIR__ . '/../config/database.php';

$id = $_GET['id'] ?? null;
if (!$id) { echo json_encode(['success' => false]); exit; }

$stmt = $mysqli->prepare("DELETE FROM ppe_inventory WHERE id = ?");
$stmt->bind_param("i", $id);
$ok = $stmt->execute();

echo json_encode(['success' => $ok]);
?>
