Add process file func and delete file