Neo4j Delete Business
AI-generatedOverview
This node deletes a business entity and all its related connections from a Neo4j graph database based on a specified business ID. It is useful in scenarios where you need to remove a business record entirely, including all relationships it has with other nodes, ensuring no orphaned data remains.
Practical examples include:
- Cleaning up test or obsolete business data from your Neo4j database.
- Removing a business that has been closed or merged, along with all its associated relationships.
- Automating data maintenance workflows where businesses are deleted based on external triggers.
Properties
| Name | Meaning |
|---|---|
| Business ID | The unique identifier (UUID) of the business node to delete. |
Output
The node outputs JSON objects for each input item processed. Each output item contains:
success: A boolean indicating whether the deletion was successful.deletedBusinessId: The business ID that was deleted.
If an error occurs and "Continue On Fail" is enabled, the output will include the original input JSON plus an error field describing the failure.
Example output JSON for a successful deletion:
{
"success": true,
"deletedBusinessId": "some-business-uuid"
}
Dependencies
- Requires a Neo4j database connection configured via credentials including host, port, username, password, and optionally database name.
- Uses the official Neo4j driver library to connect and execute Cypher queries.
- Needs proper permissions in Neo4j to perform
DETACH DELETEoperations onBusinessnodes.
Troubleshooting
Common issues:
- Missing or incomplete Neo4j credentials (host, port, username, password).
- Network connectivity problems preventing connection to the Neo4j server.
- Insufficient permissions in Neo4j to delete nodes.
- Invalid or non-existent business IDs leading to no nodes being deleted.
Error messages:
"Neo4j credentials are not fully configured or missing required fields": Check that all credential fields are correctly set."Failed to establish Neo4j connection or session.": Verify Neo4j server availability and network access."Neo4j session is not available.": Indicates internal session creation failed; retry or check configuration.- Errors parsed from Neo4j responses will be included if deletion fails per item.
To resolve errors, ensure credentials are correct, Neo4j server is reachable, and the user has appropriate permissions.