 
   # Delete emails of the user
   # '/user/emails' DELETE
-  delEmails: (emails) ->
-    @client.del '/user/emails', emails, (err, s, b)  ->
-      return cb(err) if err
-      if s isnt 204 then cb(new Error('User delEmails error')) else cb null, b
+  deleteEmails: (emails) ->
+    @client.del '/user/emails', emails, (err, s, b)  =>
+      @deleteEmails(emails) if err? or s isnt 204
 
   # Get the followers of the user
   # '/user/followers' GET


  # Delete a public key
  # '/user/keys/1' DELETE
  delKey: (id) ->
    @client.del "/user/keys/#{id}", (err, s, b)  ->
      return cb(err) if err
      if s isnt 204 then cb(new Error('User delKey error')) else cb null, b

  # Create a repository
  # '/user/repos' POST

    if cb? and typeof cbOrEmails isnt 'function'
      @setEmails cbOrEmails, cb
    else if !cb? and typeof cbOrEmails isnt 'function'
      @deleteEmails cbOrEmails
    else
      @client.get '/user/emails', (err, s, b)  ->
        return cb(err) if err
