# Erasing a multi-line frontmatter property from all markdown files ```bash find /home/obsidian/main -name '*.md' -exec sed -i '/^related_documents:.*$/,/^[^ ]/{/^related_documents:/d;/^ /d;}' {} + ``` This finds every markdown file in the vault and uses a sed range expression to delete the `related_documents` property and its list items. The range `/^related_documents:.*$/,/^[^ ]/` matches from the `related_documents:` line through to the next line that does not start with a space. Within that range, two delete commands run: one removes the `related_documents:` line itself, and the other removes every indented line (the list items). The line that terminates the range is preserved because it matches neither delete pattern.