A service can be “detached” from an app. This involves removing the environment variable bindings from the app.

Go to the service detail page from the “Services” tab in the app,

Services detail page

In the Service details page, click on the “Detach” button next to the app you want to detach the service from.

Services detach

This will trigger a redeployment of the app.