preserve file information on delete hook