Selecting all the nodes

Hi,

I need to select all the nodes programatically in a Goview. once i select all the nodes including the links i need to delete them. this is my requirement. Can anybody help me in doing this.

GoView.SelectAll()

GoDocument.Clear().