lib/snoo/account.rb
def delete_user password, reason = "deleted by script command"
      logged_in?
      delete = post('/api/delete_user', body: {
        confirm: true,
        delete_message: reason,
        passwd: password,
        uh: @modhash,
        user: @username,
        api_type: 'json'
        })
      return delete
    end
def delete_user password, reason = "deleted by script command"
      logged_in?
      delete = post('/api/delete_user', body: {
        confirm: true,
        delete_message: reason,
        passwd: password,
        uh: @modhash,
        user: @username,
        api_type: 'json'
        })
      return delete
    end
Deletes the current user. This requires a password for security reasons.

 @note (see #clear_sessions)
 @param password [String] The password for the current user
 @param reason [String] The reason the current user account is being deleted.
 @return (see #clear_sessions)