Remove old file and change all links