Added delete method to object definition