Implemented the delete all method