# Remove its OpenID Connect client from the Core's Authelia. The copy goes
# first: Authelia's start (reconcile_authelia_sso) would add the client back
# from it
rm -f /federated/apps/{{NAME}}/.{{NAME}}.oidc-client.yml
sed -i '/^      ### coreapp-{{NAME}} begin$/,/^      ### coreapp-{{NAME}} end$/d' \
  /federated/apps/authelia/data/config/idproviders.yml
restart_service authelia
