1. List all local AWS profiles (entry points to your credential list)
aws configure list-profiles
  1. Remove a specific profile (manually delete its section)
nano ~/.aws/credentials
  1. Use a specific profile in boto3
import boto3
 
sess = boto3.Session(profile_name="myuser", region_name="us-east-1")
print(sess.client("sts").get_caller_identity())