If someone has the same problem as me (the foliage is not removing when package is build, but in editor it removes fine), see the link below. For my project I needed to enable “Use Dynamic Instance Buffer”. I solved this within my project…so far it seems to work fine after enabling this option.