argument('email'); // Exact: this deletes somebody permanently, and a collation that // folds accents could hand it a different account than the one an // operator typed. See AccountLookup. $user = app(AccountLookup::class)->byEmail($email, withTrashed: true); if ($user === null) { $this->error("No account found for {$email}."); return self::FAILURE; } if (! $this->option('force') && ! $this->confirm("Permanently erase {$user->name} <{$email}> and anonymize their log entries?")) { return self::FAILURE; } $eraser->erase($user); $this->info('Account erased and log entries anonymized.'); return self::SUCCESS; } }