TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node allows you to delete a single company record by its unique identifier. It is useful in scenarios where you need to remove outdated, incorrect, or unwanted company data from your system via an API integration. For example, if a company no longer exists or should be excluded from your database, this node can automate the deletion process.

Properties

Name Meaning
Id The unique identifier (object id) of the company to delete

Output

The output contains a JSON object representing the result of the delete operation. Typically, this will confirm whether the deletion was successful or provide details about the deleted company. There is no binary data output for this operation.

Dependencies

  • Requires an API key credential to authenticate requests to the external service.
  • The node uses a base URL configured via credentials to connect to the Twenty API.
  • The node depends on the @devlikeapro/n8n-openapi-node package and a bundled OpenAPI specification file for request building.

Troubleshooting

  • Missing or invalid Id: Ensure the "Id" property is provided and correctly references an existing company.
  • Authentication errors: Verify that the API key credential is set up correctly and has sufficient permissions.
  • Network or API errors: Check connectivity to the API endpoint and ensure the base URL is correct.
  • Not found error: If the company with the given Id does not exist, the API may return a 404 error; verify the Id before attempting deletion.

Links and References

Discussion