Delete
Deletes all the matching nodes for the path expression in the given yaml input
yq delete <yaml_file|-> <path_expression>Deleting from a simple document
b:
c: 2
apples: greenyq d sample.yaml b.cb:
apples: greenFrom STDIN
cat sample.yaml | yq d - b.cDeleting in-place
Multiple Documents
Delete from single document
Delete from all documents
Last updated