Remove files before writing