purgeOldFiles

@get:Input
@get:Optional
abstract val purgeOldFiles: Property<Boolean>

Purge old files from the target directory before generating the parser. By default, old files are purged unless pathToParser and pathToPsiRoot have been specified. If you want to disable this option because the output directory is shared with another task, note that you may run into issues with stale files. Also note that overlapping task outputs are discouraged by Gradle and may cause issues when using the build cache.