<?php

header('Content-Type: application/json');

include '../config/koneksi.php';

$id = $_GET['id'] ?? '';

$query = mysqli_query(
    $conn,
    "DELETE FROM parsil_tanah
     WHERE id='$id'"
);

echo json_encode([
    "success" => $query
]);