- $archive = PConfig::get($contact['uid'], 'system', 'archive_removed_contacts');
- if ($archive) {
- DBA::update('contact', ['archive' => true, 'network' => 'none', 'writable' => false], ['id' => $id]);
- return;
- }
-
- DBA::delete('contact', ['id' => $id]);
+ // Archive the contact
+ DBA::update('contact', ['archive' => true, 'network' => Protocol::PHANTOM], ['id' => $id]);