clean Command
nbautoexport clean --help
[1m [0m
[1m [0m[1;33mUsage: [0m[1mnbautoexport clean [OPTIONS] DIRECTORY[0m[1m [0m[1m [0m
[1m [0m
(EXPERIMENTAL) Remove subfolders/files not matching .nbautoexport
configuration and existing notebooks.
[2mKnown limitations: - Not able to correctly handle additional intended files, [0m
[2msuch as image assets or non-notebook-related files.[0m
[2mâ•â”€[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m directory [1;33mDIRECTORY[0m Directory to clean. Must have a .nbautoexport [2m│[0m
[2m│[0m config file. [2m│[0m
[2m│[0m [2m[default: None] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•â”€[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-exclude[0m [1;32m-e[0m [1;33mTEXT [0m Glob-style patterns that designate files to [2m│[0m
[2m│[0m exclude from deletion. Combined with any [2m│[0m
[2m│[0m patterns specified in .nbautoexport config file. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-yes[0m [1;32m-y[0m [1;33m [0m Assume 'yes' answer to confirmation prompt to [2m│[0m
[2m│[0m delete files. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-dry[0m[1;36m-run[0m [1;33m [0m Show files that would be removed, without [2m│[0m
[2m│[0m actually removing. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-verbose[0m [1;32m-v[0m [1;33mINTEGER[0m Use multiple times to set verbosity/log level. [2m│[0m
[2m│[0m [[1;32m-v[0m = INFO, [1;32m-vv[0m = DEBUG] [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m [1;33m [0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m