Thanks for this, will investigate.
This is a usage problem. PojoCache creates internal nodes in /__JBossInternal__ which aren't cleared since PojoCache is bypassed for the bulk delete operation. So basically any object that has attach() called on it, can only be removed via the PojoCache detach method.
Also, the structure __JBossInternal__ is not considered public so you should not attempt to modify it yourself.
So the only way to do a bulk delete operation at the moment, is to iterate over all of the ids and call detach() on each one. Feel free to create a feature request if this is not sufficient.
I think there should be a way to clear an entire area in the cache (as a bulk). Finding all the POJOs in the cache and deleting them one by one, sound expensive.