Delete a Floating IP
client.GPUDroplets.FloatingIPs.Delete(ctx, floatingIP) error
/v2/floating_ips/{floating_ip}
To delete a floating IP and remove it from your account, send a DELETE request
to /v2/floating_ips/$FLOATING_IP_ADDR.
A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.
Parameters
floatingIP string
formatipv4
minimum1
Delete a Floating IP
package main
import (
"context"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := gradient.NewClient(
option.WithAccessToken("My Access Token"),
)
err := client.GPUDroplets.FloatingIPs.Delete(context.TODO(), "45.55.96.47")
if err != nil {
panic(err.Error())
}
}