'How to reset/remove the environment variables set using setx in windows?

Initial state: ABC_HOME C:\abc\bin\

start of batch file setx ABC_HOME "%ABC_HOME%;E:\newAbc\abc\bin\"
....
after the appropriate execution
*What is the command* - run this command to get final state.

Final state: ABC_HOME C:\abc\bin\



Solution 1:[1]

To Unset the Environment variable use the following syntax:

set "ABC_HOME="

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maris B.