Delete an ALB
STACKIT Application Load Balancers (ALBs) can be deleted via the STACKIT Portal, STACKIT API, or the STACKIT Terraform Provider.
Preparation
Section titled “Preparation”Before you delete an ALB, consider the following to avoid unintended outages:
- Traffic impact: Deleting an ALB immediately stops traffic forwarding. Plan cutover and update DNS, clients, or firewall rules accordingly.
- IP addresses: If the ALB used a separately managed Public IP, decide whether to detach and reuse it or delete it. Private addresses are ephemeral.
- Security groups and rules: If you referenced the ALB’s security group in other rules, clean those up after deletion.
- Observability credentials: Any observability credentials you created specifically for this ALB can be removed independently if no longer needed.
Process
Section titled “Process”Follow the steps below to delete an ALB using your preferred method:
Navigate to portal.stackit.cloud, select your desired project and follow these steps:
- In the sidebar under Networking, click on Application Load Balancer.
- Locate the ALB you want to delete and open its details or use the actions menu.
- Click Delete and confirm the deletion in the dialog.
Once confirmed, the ALB and its underlying nodes and security groups will be removed shortly.
Prerequisites
Section titled “Prerequisites”To delete a STACKIT Application Load Balancer via API, you need a temporary Bearer token for authentication under a Service Account.
- Read Access services with a service account to learn how to create a Service Account and generate a Bearer token.
- Read the STACKIT CLI Authentication Guide to learn more about CLI and environment setups that enable you to acquire Bearer tokens.
- Refer to the STACKIT Application Load Balancer API documentation for endpoint details.
Request details
Section titled “Request details”Method: DELETE
Endpoint URL:
https://alb.api.stackit.cloud/v2/projects/{projectId}/regions/{region}/load-balancers/{name}Headers:
Authorization: Bearer <your_bearer_token>
Example using cURL:
curl -X DELETE \ "https://alb.api.stackit.cloud/v2/projects/$PROJECT_ID/regions/$REGION/load-balancers/$LB_NAME" \ -H "Authorization: Bearer $TOKEN"On success, the API returns 200 OK with an empty body. The ALB will be deleted shortly after the request is accepted.