if not ok:
            print(('-- Team \'', teamA, '\' deletion failed: ', res))
    except Exception as exception:
        print(('-- Team \'', teamA, '\' deletion failed: ', exception))

    try:
        ok, res = sdclient.delete_team(teamB)
        if not ok:
            print(('-- Team \'', teamB, '\' deletion failed: ', res))
    except Exception as exception:
        print(('-- Team \'', teamB, '\' deletion failed: ', exception))

    print('-- Deleting test users.')

    try:
        ok, res = sdclient.delete_user(admin)
        if not ok:
            print(('-- User \'', admin, '\' deletion failed: ', res))
    except Exception as exception:
        print(('-- User \'', admin, '\' deletion failed: ', exception))

    try:
        ok, res = sdclient.delete_user(userA)
        if not ok:
            print(('-- User \'', userA, '\' deletion failed: ', res))
    except Exception as exception:
        print(('-- User \'', userA, '\' deletion failed: ', exception))

    try:
        ok, res = sdclient.delete_user(userB)
        if not ok:
print 'Cleaning up...'

print '-- Deleting test teams.'

res = sdclient.delete_team(teamA)
if res[0] is False:
    print '-- Team \'', teamA, '\' deletion failed: ', res[1]

res = sdclient.delete_team(teamB)
if res[0] is False:
    print '-- Team \'', teamB, '\' deletion failed: ', res[1]


print '-- Deleting test users.'

res = sdclient.delete_user(admin)
if res[0] is False:
    print '-- User \'', admin, '\' deletion failed: ', res[1]

res = sdclient.delete_user(userA)
if res[0] is False:
    print '-- User \'', userA, '\' deletion failed: ', res[1]

res = sdclient.delete_user(userB)
if res[0] is False:
    print '-- User \'', userB, '\' deletion failed: ', res[1]


print 'All done successfully!!!'

sys.exit(0)