Delete useless files + rename a file