Delete existing files before writing new ones