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