Skip to main content
Version: v5.6.1

opschain step remove-property

Included from Basic tier

opschain step remove-property <layer> <dot.path>

Records, from inside a running step, the removal of one property from the named layer, applied when the step succeeds. The write is appended as a JSON line to the file named by $OPSCHAIN_PROPERTIES; nothing is applied if the step fails.

<layer> is one of project, environment, asset; <dot.path> addresses the property with non-empty dot-separated segments. The command takes no flags of its own.

Environment​

VariableMeaning
OPSCHAIN_PROPERTIESThe property-writes file this command appends to (set by the executor).

Exit codes​

CodeMeaning
0Removal recorded.
1The property-writes file could not be written.
2Usage error.

Named errors​

  • layer "<layer>" is not one of project, environment, asset
  • property path must not be empty
  • property path "<path>" has an empty segment: use non-empty dot-separated segments
  • $OPSCHAIN_PROPERTIES is not set: opschain step subcommands only work inside a running OpsChain step

All exit 2.

Examples​

opschain step remove-property asset tf.state

See also​

  • opschain docs cli/step-set-property — the matching write, including how values parse.