added delete_all method to ObjectCollection.