Added a way to remove all objects.