# ES 7.2.0 upgrade resulted in "Don't modify the classpath with ES\_CLASSPATH" error

**URL:** <https://discuss.elastic.co/t/es-7-2-0-upgrade-resulted-in-dont-modify-the-classpath-with-es-classpath-error/189431>\
**Category:** Elasticsearch\
**Created:** [July 8, 2019, 9:30pm UTC](https://discuss.elastic.co/t/es-7-2-0-upgrade-resulted-in-dont-modify-the-classpath-with-es-classpath-error/189431 "2019-07-08T21:30:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KiloDunse](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@KiloDunse](https://discuss.elastic.co/u/KiloDunse)\
**Post date:** [July 8, 2019, 10:40pm UTC](https://discuss.elastic.co/t/es-7-2-0-upgrade-resulted-in-dont-modify-the-classpath-with-es-classpath-error/189431/2 "2019-07-08T22:40:22Z")

</div>

Fixed it by running these command:

reg delete "HKCU\Environment" /v ES\_CLASSPATH /f  
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /F /V ES\_CLASSPATH  
SET ES\_CLASSPATH=

---

_[View the full topic](https://discuss.elastic.co/t/es-7-2-0-upgrade-resulted-in-dont-modify-the-classpath-with-es-classpath-error/189431)._
