Refactor and add FileDelete Task.