Twenty CRM icon

Twenty CRM

Connect with Twenty CRM API

Opportunity → Delete

AI-generated

Overview

This node integrates with the Twenty CRM API to manage various CRM resources, including Opportunities. Specifically, for the Opportunity - Delete operation, it deletes an existing opportunity record by its ID. This is useful in scenarios where you want to programmatically remove outdated or incorrect sales opportunities from your CRM system.

Practical examples:

  • Automatically deleting opportunities that have been marked as lost or obsolete.
  • Cleaning up test or demo data after a workflow run.
  • Removing duplicate opportunity records based on external triggers.

Properties

Name Meaning
ID The unique identifier of the Opportunity record to delete. This is required to specify which opportunity should be removed.

Output

The output JSON contains the response from the Twenty CRM API after attempting to delete the opportunity. Typically, this will confirm successful deletion or provide error details if the deletion failed.

  • The json output field holds the API response data.
  • No binary data is output by this operation.

Dependencies

  • Requires an active connection to the Twenty CRM API via an API key credential configured in n8n.
  • The node uses the base API URL and authentication credentials to perform HTTP DELETE requests.
  • Proper permissions on the API key are necessary to delete opportunity records.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Opportunity ID will result in an error from the API.
    • Insufficient permissions on the API key may cause authorization errors.
    • Network connectivity problems can prevent the request from completing.
  • Error messages:

    • "Invalid JSON in Fields" — Not applicable here since no JSON fields are used in delete, but relevant for other operations.
    • API errors related to "Not Found" or "Unauthorized" indicate either wrong ID or insufficient access rights.
  • Resolutions:

    • Verify the Opportunity ID exists in Twenty CRM before attempting deletion.
    • Ensure the API key has delete permissions for opportunities.
    • Check network connectivity and API endpoint configuration.

Links and References

Discussion