Skip to main content
DELETE
/
elastic_ips
/
{elastic_ip_id}
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.ElasticIPs.DeleteElasticIP(ctx, "<id>")
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
{
  "errors": [
    {
      "code": "FEATURE_NOT_ENABLED",
      "message": "Elastic IPs is not enabled for this team"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

elastic_ip_id
string
required

The Elastic IP ID

Response

No Content