There is no way to mark keyfor deletion in a YAML file. You can overwrite existing values .
And the last thing you do is map the empty scalar as a value to the key image, as if you wrote:
image: null
There are two things you can do: a post process or creating a basic mapping in your YAML file.
-, image , , - . , , , .
, YAML:
localbase: &lb
local: &local
image: xxx
ci:
<<: *lb
build: .
, , , " " ( ruamel.yaml), "-", local . , , .