---
name: "buf-plugin-prune"
section: "1"
platform: "linux"
package: "buf"
version: "1.75.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/buf-plugin-prune"
---

# buf-plugin-prune(1)

Prune unused plugins from buf.lock

## NAME

buf-plugin-prune - Prune unused plugins from buf.lock

## SYNOPSIS

**buf plugin prune  \[flags\]**

## DESCRIPTION

Plugins that are no longer configured in buf.yaml are removed from the buf.lock file.

The first argument is the directory of your buf.yaml configuration file. Defaults to "." if no argument is specified.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for prune

## OPTIONS INHERITED FROM PARENT COMMANDS

**--debug**\[=false\]\
 	Turn on debug logging (env BUF\_DEBUG)

**--log-format**="color"\
 	The log format text,color,json ⟨env BUF\_LOG\_FORMAT⟩

**--timeout**=0s\
 	The duration until timing out, setting it to 0 means no timeout (env BUF\_TIMEOUT)

## SEE ALSO

**[buf-plugin(1)](/buf-plugin/1.md)**

## HISTORY

2026-10-22 Auto generated by spf13/cobra
