Deleting a primitive by id

Hi !
I have a collection of primitives ( billboards) . I want to delete a specific one . Is there a way to give every element a unique id and than delete it by its id?
Is there a better way?

The remove function takes an object instance so you need to have an instance to remove a primitive. Primitive’s also have an id property (like this one), which is really used for picking. You can’t remove by this id, but you could create an object that maps from id to instance to do the lookup for deletion if you really need to.