This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.
Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.
Project: Environment Variables Unit
Applies to: ~>3.0
class function Delete(const VarName: string): Integer;
Deletes the environment variable with the given name in the current process. If the environment variable does not exist the method does nothing.
0on success or a Windows error code on failure.
A description of any error can be found by passing the returned error code to SysErrorMessage from the SysUtils or System.SysUtils unit.
Note: This method does not update the system’s environment variables, only the copy of the environment maintained by this program. Changes are lost when the program terminates.