id)) { try { $stmt = $conn->prepare("DELETE FROM tanah_polygons WHERE id = :id"); $stmt->bindValue(':id', $data->id, PDO::PARAM_INT); if($stmt->execute()) { echo json_encode(["pesan" => "Parsil tanah berhasil dihapus."]); } } catch(PDOException $e) { http_response_code(500); echo json_encode(["error" => $e->getMessage()]); } } ?>