firebase functions:secrets:prune

Category: Firebase & Firestore

firebase functions:secrets:prune

Destroy secrets no longer in use

Deletes secret versions that no deployed function references, cleaning up credentials left behind by rotations and deletions. It prompts before destroying anything unless you pass -f. Run functions:secrets:get first to review what is about to go. This is the safe way to keep your secret inventory tidy.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.