       return callback createKodingError "It's not allowed to delete this user!"
 
     # only owner and the dummy admins can delete a user
-    unless toBeDeletedUsername is delegate.profile.nickname or
+    unless toBeDeletedUsername is nickname or
            delegate.can 'administer accounts'
       return callback createKodingError "You must confirm this action!"
 

      guestsGroup.removeMember account, callback

  @convert = secure (client, userFormData, callback) ->
    { connection, sessionToken : clientId, clientIP } = client
    { delegate : account } = connection
    { nickname : oldUsername } = account.profile

      email = "#{username}@koding.com"
      @one { username: toBeDeletedUsername }, (err, user) =>
        return callback err  if err?

        unless user
          return callback createKodingError \
            "User not found #{toBeDeletedUsername}"

        oldEmail = user.email

