unmount nfs

C++
umount -f -l $mounted_folder
Source

Also in C++: