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.
These retro infill panels for your BMW RnineT, RnineT...
Fold Away Lever Kit by Magura (clutch and brake lever)....
The Racing footpegs are sold in a pair. You need also...