def delete_account(client, user, pword, confirm=True):
    """
    LOGIN REQUIRED. input a user and password. confirmation default is True
    Same as register_account a valid client session must be passed in to the function
    user: the account username you wish to delete
    pword: password for the account

    > deleted = delete_account(client, 'username', 'password')
    """
    data = {'user': user, 'passwd': pword, 'confirm': confirm, 'api_type':
        'json'}
    response = client.post('http://www.reddit.com/api/delete_user', data=data)
    return response
