Chapter 3 Authentication for FortiOS 5.0 : Users and user groups : Users : Local users : Removing references to users
  
Removing references to users
You cannot remove a user that belongs to a user group. Remove the user from the user group first, and then delete the user.
To remove references to a user - web-based manager
1. Go to User & Device > User > User Definition.
2. If the number in the far right column for the selected user contains any number other than zero, select it.
3. A more detailed list of object references to this user is displayed. Use its information to find and remove these references to allow you to delete this user.