Delete an Existing Droplet
client.GPUDroplets.Delete(ctx, dropletID) error
/v2/droplets/{droplet_id}
To delete a Droplet, send a DELETE request to /v2/droplets/$DROPLET_ID.
A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.
Parameters
dropletID int64
minimum1
Delete an Existing Droplet
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.Delete(context.TODO(), int64(3164444))
if err != nil {
panic(err.Error())
}
}