Skip to content

clean Command

nbautoexport clean --help
                                                                                
 Usage: nbautoexport clean [OPTIONS] DIRECTORY                                  
                                                                                
 (EXPERIMENTAL) Remove subfolders/files not matching .nbautoexport              
 configuration and existing notebooks.                                          
 Known limitations: - Not able to correctly handle additional intended files,   
 such as image assets or   non-notebook-related files.                          

╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    directory      DIRECTORY  Directory to clean. Must have a .nbautoexport │
│                                config file.                                  │
│                                [default: None]                               │
│                                [required]                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --exclude  -e      TEXT     Glob-style patterns that designate files to      │
│                             exclude from deletion. Combined with any         │
│                             patterns specified in .nbautoexport config file. │
│ --yes      -y               Assume 'yes' answer to confirmation prompt to    │
│                             delete files.                                    │
│ --dry-run                   Show files that would be removed, without        │
│                             actually removing.                               │
│ --verbose  -v      INTEGER  Use multiple times to set verbosity/log level.   │
│                             [-v = INFO, -vv = DEBUG]                         │
│ --help                      Show this message and exit.                      │
╰──────────────────────────────────────────────────────────────────────────────╯