<script>var dataSource =newkendo.data.DataSource({data:[{id:1,name:"Jane Doe"},{id:2,name:"John Doe"}],schema:{model:{id:"id"}}});
dataSource.fetch(function(){var dataItem = dataSource.at(0);
dataSource.remove(dataItem);var data = dataSource.data();/* The result can be observed in the DevTools(F12) console of the browser. */console.log(data.length);// displays "1"/* The result can be observed in the DevTools(F12) console of the browser. */console.log(data[0].name);// displays "John Doe"});</script>