simplify code and fix advice ... in 24
Merge pull request #46 from Floobits/delete-file-advice

simplify code and fix advice ... in 24 (we are dropping 23 support)