This is a simple script that checks the mounted NSS volumes and purges all deleted files.
There is no need to change the script when a new volume is created or and old one is deleted.
Even in a clustered environment when a cluster-server has not always the same volumes mounted.
for direc in $Dirlist ; do
ncpcon purge volume $direc
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.