Delete property by key
Apache 2.0Deletes key/value pairs from properties files, as well as any comments that immediately precede the key/value pair. Comments separated by two or more newlines from the deleted key/value pair are preserved.
org. openrewrite. properties. DeletePropertyRequired
The key(s) to be deleted. This is a glob expression.
Optional
relaxedBindingBoolean
Whether to match the propertyKey using relaxed binding rules. Default is true. Set to false to use exact matching.
mod run . --recipe= org. openrewrite. properties. DeleteProperty \
-P propertyKey= 'management. metrics. binders. files. enabled or management. metrics. *'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.