3 * @file src/Worker/RemoveContact.php
4 * @brief Removes orphaned data from deleted contacts
6 namespace Friendica\Worker;
8 use Friendica\Database\dba;
10 require_once 'include/dba.php';
13 public static function execute($id) {
15 // Only delete if the contact doesn't exist (anymore)
16 $r = dba::exists('contact', ['id' => $id]);
21 // Now we delete all the depending table entries
22 dba::delete('contact', ['id' => $id]);