What is the right way to delete a directory? The problem appeares if a vector is deleted when it is in use via NFS by another application. If a file is used when unlink is called, NFS creates something like .nfs000500a800000038 in the directory and consecutive rmdir() fails. Thanks Radim