Description
This article describes how to delete the default 'admin' user on FortiGate.
Scope
Any supported version of FortiGate.
Solution
Use the following steps to delete the default admin account on a FortiGate.
If not, the delete option will be greyed out in the GUI:-
FortiGate will give the following error:
(admin) # delete admin
Cannot delete admin while 'admin' is logged in!
command_cli_delete:6989 delete table entry admin unset oper error ret=-14
Command fail. Return code -14
Log in with the new super_admin account.
Delete the original 'admin' account.
Now, the delete option will be visible and the account can be deleted from the GUI:-
To delete the admin account, run the following in the CLI:
config system admin
delete admin
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.