How to remove an environment variable in Linux.

unset AWS_PROFILE

You can run env to validate if variable is still present.

env