Closed webignition closed 3 years ago
I have the need to delete a droplet without necessarily knowing the id of the droplet.
The API supports doing so but neither the 4.3 or 4.4 branches appear to support this (apologies if I missed something).
The addition of a method to DigitalOceanV2\Api\Droplet seems straightforward and, aside from possible method name considerations, could take the form:
DigitalOceanV2\Api\Droplet
public function removeAll(string $tag): void { $this->delete('droplets', ['tag_name' => $tag]); }
I'm happy to implement this change in a fork, including the addition of tests and the updating of documentation.
I'd just like to check:
removeAll()
After attempting implementation, I realise that the above method suggestion won't work but have determined what will.
Merged into 4.4. :)
Awesome!
I have the need to delete a droplet without necessarily knowing the id of the droplet.
The API supports doing so but neither the 4.3 or 4.4 branches appear to support this (apologies if I missed something).
The addition of a method to
DigitalOceanV2\Api\Droplet
seems straightforward and, aside from possible method name considerations, could take the form:I'm happy to implement this change in a fork, including the addition of tests and the updating of documentation.
I'd just like to check:
removeAll()
is acceptable