Here’s a one-liner to remove all the .nfs* files in the current directory:
.nfs*
lsof .nfs00* | awk 'NR>1 {print $2}' | sort -u | xargs -r kill -9