This is the documentation for version 0.39. For documentation on the latest version of kpt, please see


Delete a setter

Setters provide a solution for template-free setting or substitution of field values through package metadata (OpenAPI). They are a safer alternative to other substitution techniques which do not have the context of the structured data – e.g. using sed to replace values.

See the setters guide for more info on creating and deleting setters.


# delete a setter replicas
kpt cfg delete-setter DIR/ replicas


kpt cfg delete-setter DIR NAME

  Path to a package directory

  The name of the setter to delete. e.g. replicas

--recurse-subpackages, -R
  Delete setter recursively in all the nested subpackages

Last modified September 10, 2020: docs: Guides For Composite Packages (7716e112)