lukeed / digitalocean-v2

A lightweight, Promise-based wrapper for the DigitalOcean v2 API.
4 stars 0 forks source link

Delete droplets by tag missing #7

Open aakilfernandes opened 6 years ago

aakilfernandes commented 6 years ago

https://developers.digitalocean.com/documentation/v2/#deleting-droplets-by-tag

Looks like there's no method to this endpoint

lukeed commented 6 years ago

Ah, yup. This was released before there was any tagging functionality on DO.

Looks like you can still do this in the meantime:

const DO2 = require('digitalocean-v2');
const API = new DO2({ token });

API.request(`droplets?tag_name=${tag}`, { method:'DELETE' }).then(...)
aakilfernandes commented 6 years ago

Sounds good. Should I close?

lukeed commented 6 years ago

Nah, it's okay. This will serve as a reminder for when I eventually get around to adding all methods.

Thanks!