delete object definition in class declaration