/** * @NoAdminRequired * * @param int $accountId * @return JSONResponse */ public function destroy($accountId) { try { $this->accountService->delete($this->currentUserId, $accountId); return new JSONResponse(); } catch (DoesNotExistException $e) { return new JSONResponse(); } }