Hi,
You were trying to delete elements in the active document with the “Tool.Eraser” node and not in the document Revit from the filePath.
I didn’t find a node to delete elements in another document so I made one.
You will find “Elements Delete from document” node in Genius Loci package.