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