rt-cleanup

command module
v0.0.0-...-76e645c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

rt-cleanup

About this plugin

This plugin is a simple Artifactory cleanup plugin. It can be used to delete all artifacts that have not been downloaded or modified for the past n time units (both can be configured) from a given repository.

Note: If you're planning to clean Docker repositories, this plugin may lead to unexpectedly partial or broken images. It is currently recommended to instead use the following Artifactory cleanDockerImages user plugin for this purpose.

Installation with JFrog CLI

Installing the latest version:

$ jf plugin install rt-cleanup

Installing a specific version:

$ jf plugin install rt-cleanup@version

Uninstalling a plugin

$ jf plugin uninstall rt-cleanup

Usage

Commands
  • clean
    • Arguments:
      • repository - The name of the repository you would like to clean.
    • Flags:
      • server-id: The Artifactory server ID configured using the config command.
      • time-unit: The time unit of the no-dl time. year, month and day are the allowed values. [Default: month]
      • no-dl: Artifacts that have not been downloaded or modified for at least no-dl will be deleted. [Default: 1]
    • Examples:
    $ jf rt-cleanup clean example-repo-local --time-unit=day --no-dl=3
    
    
Environment variables

None.

Additional info

None.

Release Notes

The release notes are available here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL