cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Are Delta tables able to support GDPR compliance?

User16826992666
Valued Contributor

I know that when deletes are made from a Delta table the underlying files are not actually removed. For compliance reasons I need to able to truly delete the records. How can I know which files need to be removed, and is there a way to remove them other than manually?

1 ACCEPTED SOLUTION

Accepted Solutions

sajith_appukutt
Honored Contributor II

Here is a document explaining best practices for GDPR and CCPA compliance using Delta Lake.

Specifically on cleaning up stale data - you can use the VACUUM function to remove files that are no longer referenced by a Delta table and are older than a specified retention threshold - preventing the ability to view history and roll back.

For e.g.

VACUUM gdpr.customers RETAIN 100 HOURS

View solution in original post

1 REPLY 1

sajith_appukutt
Honored Contributor II

Here is a document explaining best practices for GDPR and CCPA compliance using Delta Lake.

Specifically on cleaning up stale data - you can use the VACUUM function to remove files that are no longer referenced by a Delta table and are older than a specified retention threshold - preventing the ability to view history and roll back.

For e.g.

VACUUM gdpr.customers RETAIN 100 HOURS

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.