Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
463 B

* @file include/remove_contact.php
* @brief Removes orphaned data from deleted contacts
use Friendica\Core\Config;
function remove_contact_run($argv, $argc) {
if ($argc != 2) {
$id = intval($argv[1]);
// Only delete if the contact doesn't exist (anymore)
$r = dba::exists('contact', array('id' => $id));
if ($r) {
// Now we delete all the depending table entries
dba::delete('contact', array('id' => $id));