From 0d19b9a9f53c2a37f6b97a839034e2a5b8ce26c3 Mon Sep 17 00:00:00 2001 From: Juan Manuel Pereira Date: Wed, 3 Jan 2024 16:00:01 -0300 Subject: [PATCH] Respect constraints when deleting all user's data --- .../DataBrokerProtectionDatabaseProvider.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift index e1ad368fd0..384157de75 100644 --- a/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift +++ b/LocalPackages/DataBrokerProtection/Sources/DataBrokerProtection/Storage/DataBrokerProtectionDatabaseProvider.swift @@ -321,28 +321,16 @@ final class DefaultDataBrokerProtectionDatabaseProvider: GRDBSecureStorageDataba func deleteProfileData() throws { try db.write { db in - try OptOutHistoryEventDB - .deleteAll(db) try OptOutDB .deleteAll(db) - try ScanHistoryEventDB - .deleteAll(db) try ScanDB .deleteAll(db) - try ExtractedProfileDB - .deleteAll(db) - try ProfileQueryDB - .deleteAll(db) - try BrokerDB - .deleteAll(db) try NameDB .deleteAll(db) try AddressDB .deleteAll(db) try PhoneDB .deleteAll(db) - try ProfileDB - .deleteAll(db) } }