Commands to edit app.yml
can be found at the beginning of Install plugins on a self-hosted site
You should remove the entire line which mentions discourse-social-share
Even though the error is gone, I’d still recommend removing it. Having a theme in the plugins directory could cause other issues in future.