I use this kind of code:
IF (Key = VK_DELETE) And Assigned(DirView1.Selected) And Not DirView1.isEditing Then
DirView1.DeleteSelectedFiles(Not(ssShift in Shift));
This code is working fine. But now i don't know why it raises exception EInOutError with message 'File not Found'. And leaves file in the DirView list.
If i delete with this code directory then it works fine.