def reset_dropbox(username):
    """resets the dropbox configuration for the user username"""
    try:
        db = get_dropbox_client(username, setup=False)
    except:
        db = None
    if hasattr(db, "auth_token_revoke"):
        try:
            db.auth_token_revoke()
        except:
            pass
    keychain.delete_password(DB_SERVICE, username)
resets the dropbox configuration for the user username
lib/stashutils/dbutils.py