public static function cleanUp($esId) { $session = new Session(); $session->deleteBy('es_id', $esId); $member = new \OCA\Documents\Db\Member(); $member->deleteBy('es_id', $esId); $op = new \OCA\Documents\Db\Op(); $op->deleteBy('es_id', $esId); }