Digital Ocean icon

Digital Ocean

Digital Ocean

Actions14

Overview

This node integrates with the Digital Ocean API to manage various resources such as accounts, domains, droplets, and events. Specifically, for the Domain - Delete operation, it allows users to delete a domain from their Digital Ocean account by specifying the domain name. This is useful in scenarios where you want to automate domain management tasks, such as cleaning up unused domains or integrating domain lifecycle management into broader workflows.

Practical example: Automatically remove a domain after a project is completed or when migrating services away from Digital Ocean.

Properties

Name Meaning
Authentication Method of authentication to use with Digital Ocean API. Options: "Access Token", "OAuth2"
Domain Name The exact name of the domain to delete from your Digital Ocean account (e.g., "example.com")

Output

The output JSON for the delete domain operation is a simple object indicating success:

{
  "success": true
}

This confirms that the domain was successfully deleted. There is no additional data returned about the domain itself.

Dependencies

  • Requires an active Digital Ocean account.
  • Requires an API key credential or OAuth2 token configured in n8n for authentication.
  • Uses the Digital Ocean REST API endpoint DELETE /v2/domains/{domain_name}.

Troubleshooting

  • Common issues:

    • Trying to delete a domain that does not exist or is not owned by the authenticated user will likely result in an error.
    • Insufficient permissions on the API token can cause authorization failures.
    • Network or API rate limiting issues may cause request failures.
  • Error messages:

    • "Domain not found" — Verify the domain name is correct and exists in your Digital Ocean account.
    • "Unauthorized" or "Forbidden" — Check that the API credentials have the necessary permissions.
    • "Request failed" — Could be due to network issues; retry or check connectivity.

Links and References

Discussion