changelog remove cli command
docs-builder changelog remove \
[<profile>] \
[<profile-arg>] \
[<profile-report>] \
[options]
Destructive operation — changes made by this command cannot be undone.
This command prompts for confirmation before proceeding.
Scope:
directory.
Delete changelog entry files matching a filter.
<profile>string- Optional: Profile name from bundle.profiles in config (for example, "elasticsearch-release"). When specified, the second argument is the version or promotion report URL.
<profile-arg>string- Optional: Version number or promotion report URL/path when using a profile (for example, "9.2.0" or "https://buildkite.../promotion-report.html")
<profile-report>string- Optional: Promotion report or URL list file when also providing a version. When provided, the second argument must be a version string and this is the PR/issue filter source.
--[no-]all-
Remove all changelogs in the directory. Exactly one filter option must be specified: --all, --products, --prs, --issues, or --report.
Default:
false --bundles-dirstring-
Optional: Override the directory that is scanned for bundles during the dependency check. Auto-discovered from config or fallback paths when not specified.
Constraints: symbolic links not allowed, supports
~home expansion --configstring-
Optional: Path to the changelog.yml configuration file. Defaults to 'docs/changelog.yml'
Constraints: symbolic links not allowed, must exist, extensions: yml, yaml, supports
~home expansion --directorystring-
Optional: Directory containing changelog YAML files. Uses config bundle.directory or defaults to current directory
Constraints: symbolic links not allowed, supports
~home expansion --[no-]dry-run-
Print the files that would be removed without deleting them. Valid in both profile and raw mode. (preview changes without applying them)
Default:
false --[no-]force-
Proceed with removal even when files are referenced by unresolved bundles. Emits warnings instead of errors for each dependency. Valid in both profile and raw mode. (pass to skip the confirmation prompt)
Default:
false --issuesstring[]-
Filter by issue URLs (comma-separated) or a path to a newline-delimited file containing fully-qualified GitHub issue URLs. Can be specified multiple times.
Repeatable: pass
--issuesmultiple times to supply more than one value --ownerstring- Optional: GitHub repository owner, which is used when PRs or issues are specified as numbers or when using --release-version. Falls back to bundle.owner in changelog.yml when not specified. If that value is also absent, "elastic" is used.
--productsstring- Filter by products in format "product target lifecycle, ..." (for example, "elasticsearch 9.3.0 ga"). All three parts are required but can be wildcards (*).
--prsstring[]-
Filter by pull request URLs (comma-separated) or a path to a newline-delimited file containing fully-qualified GitHub PR URLs. Can be specified multiple times.
Repeatable: pass
--prsmultiple times to supply more than one value --release-versionstring- GitHub release tag to use as a filter source (for example, "v9.2.0" or "latest"). Fetches the release, parses PR references from the release notes, and removes changelogs whose PR URLs match — equivalent to passing the PR list using --prs.
--repostring- GitHub repository name, which is used when PRs or issues are specified as numbers or when --release-version is used. Falls back to bundle.repo in changelog.yml when not specified. If that value is also absent, the product ID is used.
--reportstring- Optional (option-based mode only): URL or file path to a promotion report. Extracts PR URLs and uses them as the filter. Mutually exclusive with --all, --products, --prs, --release-version, and --issues.
-l--log-levelenum-
Minimum log level.
Values: trace, debug, information, warning, error, critical, none
Default:
information -c--config-sourceenum-
Override the configuration source: local, remote
Values: local, remote, embedded
--[no-]skip-private-repositories- Skip cloning private repositories
Blocks when a file is referenced by an unresolved bundle to avoid breaking the {changelog} directive in published documentation. Pass --force to override.