What I'm proposing is purging my sanitised corny keg...with beer.
I transfer the beer in under pressure with a spunding valve, then when full (flowing out the prv or spunding) I disconnect the spunding valve. I attach the gas to the liquid post, then I vent foam out the prv...job done, all...