Delete Destination(s)
Delete a Destination
The Nexla API supports deleting destinations that the authenticated user has administrative or ownership rights to. Deleting a destination permanently removes it from your account and stops all associated data flows.
Delete Endpoint
The primary endpoint for deleting destinations is:
DELETE /data_sinks/{destination_id}
Delete Response
A successful deletion request returns a 200 status with no response body, indicating the destination has been permanently removed.
- Nexla API
DELETE /data_sinks/5023
Response Structure
- Nexla API
Empty response with status 200 for success
Error response with reason if destination could not be deleted
Delete Considerations
Before deleting a destination, consider these important factors:
Data Flow Impact
- Active Flows: Deleting a destination immediately stops all data output
- Nexset Association: The associated Nexset will no longer have this output target
- Irreversible Action: Deletion cannot be undone - the destination must be recreated
Associated Resources
- Credentials: Destination credentials are not automatically deleted
- Data Maps: Associated data mapping configurations are preserved
- Audit History: Deletion events are recorded in audit logs
Prerequisites
To successfully delete a destination:
- Ownership Rights: You must have administrative or ownership access
- Destination Exists: The destination ID must be valid and accessible
- No Active Dependencies: The destination should not be part of critical active flows
Delete Process
The deletion process follows these steps:
- Validation: Verify user permissions and destination existence
- Flow Termination: Stop any active data flows to the destination
- Resource Cleanup: Remove destination configuration and associations
- Confirmation: Return success status upon completion
Error Handling
Common deletion issues and solutions:
- Permission Denied: Ensure you have administrative or ownership rights
- Destination Not Found: Verify the destination ID is correct
- Active Dependencies: Check if the destination is part of active flows
- System Errors: Contact support for unexpected system issues
Best Practices
To safely delete destinations:
- Verify Impact: Check what data flows will be affected
- Backup Configuration: Save destination configuration before deletion
- Communicate Changes: Inform team members of planned deletions
- Test in Non-Production: Practice deletion procedures in test environments
- Document Reasons: Keep records of why destinations were deleted
Alternative to Deletion
Instead of deleting destinations, consider:
Pausing Destinations
PUT /data_sinks/{destination_id}/pause
Updating Configuration
PUT /data_sinks/{destination_id}
Archiving Destinations
Set destinations to inactive status rather than deleting them.
Recovery After Deletion
If you need to restore a deleted destination:
- Recreate Destination: Use the same configuration parameters
- Reassociate Nexset: Connect the destination to the appropriate Nexset
- Test Configuration: Validate the new destination works correctly
- Activate Flow: Start data output to the new destination
Related Operations
After deleting a destination, you may need to:
Create New Destination
POST /data_sinks
Update Nexset Configuration
PUT /nexsets/{nexset_id}
Review Data Flow Impact
GET /flows
Check Audit Log
GET /audit_log