This method sets the “remove flag” of the parent object. The remove flag indicates whether the object will be removed.