I was trying to clean the Logins and saw some userid that were old then when I tried to delete I got this message:

Error 15174:Login 'userid' is aliased or mapped to a user in one or more database(s). Drop the user or alias before dropping the login. Database name: ABC