How to edit configuration.yaml from command line

I added a line to configuration.yaml from the UI, but now I cannot access the UI.

I can however access root via VNC remote so I can see the logs and everything else.

The problem is where or how do I remove that line I added to the configuration.yaml from the command line?

cd /config
nano configuration.yaml

Thanks for the reply, have a look at the attachment.