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 to clean. Must have a .nbautoexport config file.
             [required]

Options:
  -e, --exclude TEXT  Glob-style patterns that designate files to exclude from
                      deletion. Combined with any patterns specified in
                      .nbautoexport config file.
  -y, --yes           Assume 'yes' answer to confirmation prompt to delete
                      files.
  --dry-run           Show files that would be removed, without actually
                      removing.
  -v, --verbose       Use multiple times to set verbosity/log level. [-v =
                      INFO, -vv = DEBUG]
  --help              Show this message and exit.