How do you remove or click on a point primitive object?

1. A concise explanation of the problem you’re experiencing.

I had to switch to point primitives because too many entities on the screen was crashing the globe. Since I am using point primitives i lose the ability to click and call remove methods on them like I can on entities. Is there a way to write click events and remove methods for point primitives?

2. Context. Why do you need to do this? We might know a better way to accomplish your goal.

point primitives work great for having many objects on the screen but I need some added functionality to manipulate them.

You should be able to get the primitive(s) under the mouse by calling Scene.pick on a mouse click event:

https://cesium.com/docs/cesiumjs-ref-doc/Scene.html?classFilter=scene#pick

Will that give the same effect as the green box and info box in the top corner?

No, this would be a lower level interface just to get what was clicked. You could build a similar interface in your app yourself, since the selection indicator view model is not exposed to the public API:

Ok cool am is there a guide to doing this or do I just have to figure out how the source code works?

The SelectionIndicator and its view model actually are public API:

https://cesium.com/docs/cesiumjs-ref-doc/Viewer.html#selectionIndicator

https://cesium.com/docs/cesiumjs-ref-doc/SelectionIndicator.html

https://cesium.com/docs/cesiumjs-ref-doc/SelectionIndicatorViewModel.html