How do I remove a pin that I don't want inside the group?

Right click the pin and choose Ungroup Pin or select the pin and press the Delete key on the keyboard.