For NFS directory, there is a function for removing it safely in utils module.