Re: How to delete stale NFS handles

From: Doug McIntyre <merlyn_at_geeks.org>
Date: Fri, 08 Oct 2021 23:01:07 UTC
On Fri, Oct 08, 2021 at 03:14:59PM -0400, Aryeh Friedman wrote:
> How do I delete the .nfs's in the following session capture:
> 
> aryeh@sarek1024% rm -rf scrap/
> rm: scrap/www/WEB-INF/lib: Directory not empty
...
> ./scrap/www/WEB-INF/lib/.nfs.82430403.33dc4.4
> ./scrap/www/WEB-INF/lib/.nfs.82430407.33dc4.4
> ./scrap/www/WEB-INF/lib/.nfs.82430406.33dc4.4

There's a process running that is holding that file open.

You'll have to shut down that process so it'll release the file handle.