LB Agent running with no stack deployed

Removing all stacks from the cluster leaves one LB Agent running. Can’t kill it - it will get re-spawned as if it’s a left-over from and older deployment. How do I get rid of it?

Use the API to view the container. From the container, look at the service it’s associated with and use the API to delete the service. This should stop the containers from respawning.

Before you delete the service, can you share the state of the service?

Hi. Thank you for answering.
The service looks like this:

{"id": "1s39","type": "loadBalancerService","links": {"self": "…/v1/projects/1a5/loadbalancerservices/1s39","account": "…/v1/projects/1a5/loadbalancerservices/1s39/account","consumedbyservices": "…/v1/projects/1a5/loadbalancerservices/1s39/consumedbyservices","consumedservices": "…/v1/projects/1a5/loadbalancerservices/1s39/consumedservices","environment": "…/v1/projects/1a5/loadbalancerservices/1s39/environment","instances": "…/v1/projects/1a5/loadbalancerservices/1s39/instances","loadBalancerConfigs": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancerconfigs","loadBalancerListeners": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancerlisteners","loadBalancers": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancers","serviceExposeMaps": "…/v1/projects/1a5/loadbalancerservices/1s39/serviceexposemaps",},"actions": {"upgrade": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=upgrade","update": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=update","remove": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=remove","setservicelinks": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=setservicelinks","removeservicelink": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=removeservicelink","addservicelink": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=addservicelink","deactivate": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=deactivate",},"name": "webapp-lb","state": "active","accountId": "1a5","certificateIds": null,"created": "2015-10-05T14:16:24Z","createdTS": 1444054584000,"defaultCertificateId": null,"description": null,"environmentId": "1e15","kind": "loadBalancerService","launchConfig": {"logConfig": { },"networkMode": "managed","ports": ["80:6543",],"restartPolicy": {"name": "always",},"stdinOpen": true,"tty": true,"privileged": false,"publishAllPorts": false,"readOnly": false,"startOnCreate": true,},"loadBalancerConfig": {"name": "webapp-lb config",},"metadata": null,"removed": null,"scale": 1,"transitioning": "no","transitioningMessage": null,"transitioningProgress": null,"upgrade": null,"uuid": "91e6e4d4-0666-4141-aabb-b35a8d65c78a","vip": "169.254.76.44",}

The state of the service is Active which is why it keeps respawning.

Can you remove the service using the API?

Yes, removing the service using the API worked - thanks!