Right now, I am using two different versions of Elasticsearch: 5.6.8, and 6.4.3. For personal security reasons, I am looking to remove any unused jar files from both the lib and modules directories in elasticsearch. I am wondering if there are any that can be removed safely or if all are necessary.
In continuation, I know in the 6.4.3 modules, there are directories for x-pack. If I don't use x-pack, and don't plan on it, would it be safe to remove these?