<?php
include '../inc/db.php';
header('Content-Type: application/json');

$id=intval($_POST['id']??0);

if(!$id){
echo json_encode(['status'=>'error']);
exit;
}

mysqli_query($conn,"DELETE FROM sorting_options WHERE id=$id");

echo json_encode(['status'=>'success']);
