delete file before assign to new