Add file delete support in scanner