<?php
session_start();

require_once '../../includes/auth.php';

$itemId = (int)($_POST['item_id'] ?? 0);

if ($itemId <= 0) {
    exit('Invalid request');
}

if (isset($_SESSION['pos_cart'][$itemId])) {
    unset($_SESSION['pos_cart'][$itemId]);
}

echo 'OK';
?>