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
| Variable | Meaning |
|---|---|
OPSCHAIN_PROPERTIES | The property-writes file this command appends to (set by the executor). |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Removal recorded. |
| 1 | The property-writes file could not be written. |
| 2 | Usage error. |
Named errors
layer "<layer>" is not one of project, environment, assetproperty path must not be emptyproperty path "<path>" has an empty segment: use non-empty dot-separated segments$OPSCHAIN_PROPERTIES is not set:opschain stepsubcommands 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.