I am doing exactly that.
```findUnusedMeshNodes()``` returns a vector of node indices which are given to ```removeUnusedMeshNodes()``` which in turn calls the general method ```removeMeshNodes``` that will return any mesh nodes based the given node idx vector.