Overview
Kroo uses a soft-delete methodology to handle records that are deleted in your source construction management systems. This approach prioritizes data integrity and historical tracking over immediate data removal. Deleted records will always be marked with the condition_fivetran_deleted=1
How Soft Deletes Work
When a record is deleted in your source system (like Procore), Kroo:1
Detects the Deletion
During the next sync cycle, Kroo identifies that the record no longer exists in the source system
2
Marks as Deleted
Instead of removing the record, Kroo adds a deletion flag (typically
_fivetran_deleted = 1)3
Preserves Historical Data
The record remains in your warehouse with all original data intact, just flagged as deleted
4
Maintains Relationships
Related records and foreign key relationships remain functional for historical analysis
Database Implementation
Deletion Flags
Soft-deleted records are identified by special columns:- Standard Flag
Querying Active Records
To get only active (non-deleted) records in your queries:Pro Tip: Many BI tools and data visualization platforms can automatically filter out soft-deleted records by adding
WHERE _fivetran_deleted = 0 to your base queries.Benefits of Soft Deletes
Data Integrity
Historical reports remain accurate even when source records are deleted
Audit Trail
Track what was deleted and when for compliance and debugging
Relationship Preservation
Foreign key relationships stay intact for historical analysis
Recovery Capability
Accidentally deleted data can be identified and addressed
Working with Soft Deletes
In Your Reports
When building reports or dashboards:- Default to Active Records: Filter out deleted records unless specifically analyzing deletions
- Historical Analysis: Include deleted records when analyzing trends over time
- Data Validation: Use deletion flags to identify data quality issues
In Your Queries
- Active Records Only
- Include Deleted Records
- Deletion Analysis
Important Considerations
Query Performance
Always include
WHERE _fivetran_deleted = 0 in your queries to maintain optimal performance and avoid including unwanted deleted records.Storage Impact
Soft deletes mean your warehouse retains all historical data. Monitor storage usage and work with your team on data archival strategies if needed.
Data Privacy
Soft-deleted records containing sensitive information are still present in your warehouse. Consider this for GDPR and other privacy compliance requirements.
Need Help?
Questions About Data Retention?
Contact your implementation team at [email protected] to discuss data retention policies or custom deletion handling requirements.