if there’s no pressure in the barrel you should be able to simply unscrew it. to test if there’s pressure, does the lager fizz out or does it struggle to glug out?
If there is pressure in the barrel DO NOT UNSCREW THE CAP. I stupidly did this once & nearly lost an eye. I did lose the cap missile.
It also depends on the size of the barrel. If it’s a “budget” barrel with a tap at the bottom, there’s less air space on top of 23L than there is in say a Rotokeg.
Personally, I don’t like barrels. if it goes off, you’ve lost the whole batch; I prefer bottles although cleaning 40 bottles at a time is a pain. I also highly recommend a “bottling stick”
for a real ale, you’re looking at 1 tsp of sugar in each bottle; if lager I’d go for maybe 1.5 tsp per bottle.
Or you could “batch prime” with 80-130g of sugar in the fermenter before you transfer it to bottles/barrel, plus 0.5 tsp in each bottle.
http://www.jimsbeerkit.co.uk is the font of all knowledge