Skip to content

Commit

Permalink
updated information
Browse files Browse the repository at this point in the history
  • Loading branch information
souravg-db committed Jan 2, 2024
1 parent ddf061a commit 2e89b21
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/GDPR_RoE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## GDPR Right of Erasure (Delete)

Any European citizen has the right to ask for his data to be deleted. If the user data is spread across multiple tables, erasing all the user data can be a daunting task.
Any EU citizen/resident has the right to ask for his data to be deleted. If the user data is spread across multiple tables, erasing all the user data can be a daunting task.

If all your tables share the same column name for a user identifier, then the operation is quite straightforward. You can select all the tables that have that column, and run a delete statement on all tables at once.

Expand All @@ -16,6 +16,13 @@ dx.from_tables("*.*.*")\

## Vaccum

Note: You need to regularly [vacuum](https://docs.delta.io/latest/delta-utility.html#remove-files-no-longer-referenced-by-a-delta-table) all your delta tables to remove all traces of your deleted rows.
You need to regularly [vacuum](https://docs.delta.io/latest/delta-utility.html#remove-files-no-longer-referenced-by-a-delta-table) all your delta tables to remove all traces of your deleted rows.

Check out how to [vacuum all your tables at once with DiscoverX](Vacuum.md).

NOTE: Delta Lake latest features enable users to soft delete data. For example,

* Dropping columns with [column mapping](https://learn.microsoft.com/en-us/azure/databricks/delta/delta-column-mapping) enabled.
* Deleting rows with [deletion vectors](https://learn.microsoft.com/en-us/azure/databricks/delta/delta-column-mapping) enabled.

For detailed instructions on executing VACUUM with these features, please refer to the documentation.

0 comments on commit 2e89b21

Please sign in to comment.