3 final class PhabricatorPeopleDeleteController
4 extends PhabricatorPeopleController
{
6 public function handleRequest(AphrontRequest
$request) {
7 $viewer = $request->getUser();
8 $id = $request->getURIData('id');
10 $user = id(new PhabricatorPeopleQuery())
15 return new Aphront404Response();
18 $manage_uri = $this->getApplicationURI("manage/{$id}/");
20 $doc_uri = PhabricatorEnv
::getDoclink(
21 'Permanently Destroying Data');
23 return $this->newDialog()
24 ->setTitle(pht('Delete User'))
27 'To permanently destroy this user, run this command from the '.
31 'phabricator/ $ ./bin/remove destroy %R',
32 $user->getMonogram()))
35 'Unless you have a very good reason to delete this user, consider '.
36 'disabling them instead.'))
39 'Users can not be permanently destroyed from the web interface. '.
40 'See %s in the documentation for more information.',
47 pht('Permanently Destroying Data'))))
48 ->addCancelButton($manage_uri, pht('Close'));