Delete By Tag
Deleting Droplets by Tag
gpu_droplets.delete_by_tag(GPUDropletDeleteByTagParams**kwargs)
/v2/droplets
To delete all Droplets assigned to a specific tag, include the tag_name
query parameter set to the name of the tag in your DELETE request. For
example, /v2/droplets?tag_name=$TAG_NAME
.
This endpoint requires tag:read
scope.
A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.
Parameters
Deleting Droplets by Tag
from gradient import Gradient
client = Gradient()
client.gpu_droplets.delete_by_tag(
tag_name="tag_name",
)