Skip to content
  • Auto
  • Light
  • Dark

Remove

Remove Tags from a Firewall
client.gpuDroplets.firewalls.tags.remove(stringfirewallID, TagRemoveParams { tags } body, RequestOptionsoptions?): void
delete/v2/firewalls/{firewall_id}/tags

To remove a tag representing a group of Droplets from a firewall, send a DELETE request to /v2/firewalls/$FIREWALL_ID/tags. In the body of the request, there should be a tags attribute containing a list of tag names.

No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

ParametersExpand Collapse
firewallID: string
body: TagRemoveParams { tags }
tags: Array<string> | null

A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request.

Requires tag:create and tag:read scopes.

Remove Tags from a Firewall
import Gradient from '@digitalocean/gradient';

const client = new Gradient();

await client.gpuDroplets.firewalls.tags.remove('bb4b2611-3d72-467b-8602-280330ecd65c', {
  tags: ['frontend'],
});
Returns Examples