LPS-48929 Remove elasticsearch folder on build time
LPS-48929 Keep the logic in the module