remove file, truncate on file write end