added support for the removeAllObjects command