Added delete_all method to ObjectCollection.