remove link before creating a new plain file