about deleting rows

Hi

I have a thing going on that I don’t understand.
I got a isc.datasource.create, which retrieves its data from a .data.xml file.
I used this for a listgrid, and I added a remove button. This button does the following actions:

supplyItem.removeData(supplyList.getSelectedRecord());
supplyList.removeSelectedData();
supplyList.markForRedraw();

in which supplyItem is the datasource, and supplyList is the Listgrid.

However, if I remove a record in the listgrid, it disappears and even if I refresh the page, it’s still gone. But what I don’t understand is that, if I open the .data.xml file, I still see the ‘deleted’ record there. I tried restarting the server, but still it won’t come up again in the listgrid.

I don’t understand, so can anybody help me plz?

Kind regards