The --clear-output flag deletes every cell's printed output and figures, leaving code and markdown intact, and --inplace saves the result over the original file. Cleaning outputs shrinks notebooks and avoids committing stale results to version control. Re-running with --execute regenerates everything. This is standard hygiene before committing notebooks to git.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.