Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.06 KB

File metadata and controls

34 lines (24 loc) · 1.06 KB

clean

Removes gallery files while preserving original photos.

spg clean [options]

How it works

The command will remove the index.html file and the gallery folder from the gallery directory. It will also remove the gallery.json file. After running this command, your photos folder will return to the same state as it was before you initialized the gallery.

Options

Option Description Default
-g, --gallery <path> Path to gallery directory Current directory
-r, --recursive Clean all galleries false
-v, --verbose Show detailed output
-q, --quiet Only show warnings/errors
-h, --help Show command help

Examples

# Clean current directory
spg clean

# Clean specific directory
spg clean -g /path/to/gallery

# Clean all galleries recursively
spg clean -r