Actions14
Overview
This node integrates with the Digital Ocean API to manage cloud resources, specifically droplets (virtual machines). The "Delete Droplet" operation allows users to delete a specified droplet by its name or ID. This is useful for automating infrastructure cleanup, managing costs by removing unused droplets, or orchestrating complex workflows that require dynamic resource management.
Practical examples:
- Automatically deleting test droplets after CI/CD pipeline runs.
- Removing droplets based on specific triggers or schedules.
- Cleaning up droplets when scaling down an application environment.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating with Digital Ocean: either using an Access Token or OAuth2 authentication. |
| Droplet Name or ID | The identifier of the droplet to delete. Can be selected from a list of existing droplets or specified via an expression. |
Output
The output JSON contains a single field:
success: A boolean indicating whether the deletion was successful (true).
No binary data is output by this operation.
Example output:
{
"success": true
}
Dependencies
- Requires a valid Digital Ocean API credential configured in n8n, either as an access token or OAuth2.
- The node depends on the Digital Ocean API being accessible and the provided credentials having permission to delete droplets.
Troubleshooting
Common issues:
- Providing an invalid or non-existent droplet ID/name will result in an error.
- Insufficient permissions on the API key or OAuth2 token can cause authorization failures.
- Network connectivity issues may prevent communication with the Digital Ocean API.
Error messages and resolutions:
- "Droplet not found": Verify the droplet ID or name is correct and exists.
- "Unauthorized" or "Forbidden": Check that the API credentials have the necessary permissions.
- Timeout or network errors: Ensure stable internet connection and that Digital Ocean API endpoints are reachable.
Links and References
- Digital Ocean API Documentation - Droplets
- n8n Expressions Documentation (for specifying droplet ID dynamically)