Delete RVT links entirely from Revit file

Did you have any luck with this? i am looking at doing the same thing. (open a revit file in the background, remove linked revit files, close file) it appears that you can only delete instance of linked file and not the linked file.
i would have thought a node similar to remove.link would exist