The one on the right is a manual shutoff for the fuel, twist that knurled knob clockwise to the stop, remove hose that attaches at the back side of the valve. The item on the left is a fuel level sensor, there will be a quick connect plug a short distance inboard from the mounted sensor found when the tank is released from the frame with bolt at rear and lifted slightly from the rear. On reassembling use caution to make sure you plug the sensor into the correct cable, it may be marked or it may have a yellow band. The risk is that this bike started life with and electric petcock that ran on 12v with ground, the sensor does not and you can burn it out. There is also a return hose attached at the front of the tank in the tunnel, you may have to remove one or both of the trim panels attached to the headstock, the nut on the hose is 19mm.There may also be small hoses pushed onto fittings on the bottom of the tank under the fuel cap area, remove those and slide tank back while lifting and Robert is your Mother's brother.
Brian