logologo
HomeGallery
  • Why?
  • Docs
  • Demo
  • Download
    Start
    Install
    General
    docker-compose
    docker
    Binary
    App Bundle
    Generic Bundle
    Source
    Azure
    Configuration
    CLI
    help
    run
    export meta
    export static
    fetch
    database
    storage
    plugin
    cast
    Webapp
    Search
    FAQ
    API server
    Recipes
    Use Nginx proxy with subpath
    Use Traefik proxy with subpath
    Use IIS Proxy With a Sub-Path
    Internals
    Workflow
    Building Blocks
    Data Structures
    Design Decisions
    Development
    Plugin
    Extractor Plugin
    Database Mapper Plugin
    Query Plugin
    Previous pagedatabaseNext pageplugin

    #storage command

    The storage command

    • Purges unused and orphan files from the storage directory
    gallery.js storage purge
    
    Purge orphean storage files
    
    Options:
          --version          Show version number                           [boolean]
          --full-version     Show full build version                       [boolean]
      -l, --log-level        Console log level
             [string] [choices: "trace", "debug", "info", "warn", "error", "silent"]
      -J, --log-json-format  Log output format in json                     [boolean]
      -L, --log-file         Log file
          --log-file-level   Log file level
      [string] [choices: "trace", "debug", "info", "warn", "error"] [default: "debug
                                                                                  "]
      -c, --config           Configuration file
          --auto-config      Search for configuration on common configuration direct
                             ories                         [boolean] [default: true]
      -s, --storage          Storage directory
      -d, --database         Database file
      -i, --index            Optional index file                             [array]
      -n, --dry-run          Do not perform any writes                     [boolean]
      -h, --help             Show help                                     [boolean]
          --level                                                   [default: debug]