get file(object) info uploader on delete

Hello, I find solution delete file and ajax request to delete on server.

I need information about an object when I delete it

i try event onBeforeDelete, but files.data not have file with id.

$$(“filesPhotos”).files.attachEvent(“onBeforeDelete”, function (id) {
console.log(id);
console.log($$(“filesPhotos”).files.data)
});

What a event need to use delete file and get info about file ?

How to get the deleted object (file)? information on it

@Kossin
did you try this.getItem(id)?

$$("filesPhotos").files.attachEvent("onBeforeDelete", function (id) {
  console.log(id);
  var item = this.getItem(id);
  console.log(item);
  webix.message(item.name + ": delete cancelled");
  return false;
});

@intregal , i try

$$(“filesPhotos”).files.getItem(id);

Your code work good

another your help me, health to all those who are dear to you