curvenote clean

curvenote clean deletes what curvenote build and curvenote start write into _build. With no flags it removes the exports and site content; name a format or files to remove only those, and it asks before deleting anything.

curvenote clean --pdf
curvenote clean --all -y

What to remove

  • Formats: --pdf, --tex, --typst, --word (or --docx), --md, --jats (or --xml), --meca, --cff, --site, --html.

  • --exports: the whole _build/exports folder.

  • --templates: the downloaded export templates and site templates, so the next build downloads them again.

  • --temp: the intermediate files in _build/temp.

  • --execute: the cache of executed notebook outputs.

  • --cache: the cache of web requests, such as DOIs.

  • --logs: the CLI’s logs.

  • -a, --all: everything above.

-y, --yes skips the question.

Abbreviations
CLI
Command Line Interface
DOI
Digital Object Identifier