There is a drilling in the side of the plug in which you can put a size 3 Allen key or a Torx key T10 (usually found in the your BMW toolkit) in order to fit and remove it.
See tools
BMW RnineT, RnineT Scrambler, Pure, Racer, Urban G/S & RnineT /5
Also referred to as oil filler cap.
The Enduro footpegs are sold in a pair. In addition...
Oil filler plug Torx, made of high-quality aluminium....
Hand brake lever including screw and nut
BMW RnineT...