     username = "#{username}-rm"
 
     email = "#{username}@koding.com"
-    @one { username: toBeDeletedUsername }, (err, user) =>
+    @one { username: toBeDeletedUsername }, (err, user) ->
       return callback err  if err?
 
       unless user
         return callback new KodingError \
           "User not found #{toBeDeletedUsername}"
 
-      oldEmail = user.email
 
       userValues = {
         email           : email

      return callback new Error 'User not found'  unless user

      user.verifyByPin options, callback


  validateConvertInput = (userFormData, client) ->

      }
      modifier = { $set: userValues, $unset: { oldUsername: 1 } }
      # update the user with empty data

      user.update modifier, updateUnregisteredUserAccount({
        user, username, toBeDeletedUsername
      }, callback)


  @isRegistrationEnabled = (callback) ->
