Delete files and fix chmod