user = $user; } public function handle() { $userManager = \OC::$server->getUserManager(); if (!$userManager->userExists($this->user)) { // User has been deleted already return; } \OC_Util::tearDownFS(); \OC_Util::setupFS($this->user); Trashbin::expire($this->user); \OC_Util::tearDownFS(); } }