NAME
delete-components.pl - Delete Nexus components
SYNOPSIS
delete-components.pl [long options...] <parameters>
--nexus STR Nexus base URL
--repository STR Repository name
--group STR Component group
--name STR Component name
--version STR Component version
--yes really delete components
--debug show debug information
--help print usage message and exit
DESCRIPTION
Deletes components from a Nexus 3 server based on a few search criteria.
ATTENTION! Please, be careful to specify the search criteria exactly or else you run the risk of deleting more than you want. Run the script once without the --yes option to see which components it tells you it would delete. Check the list and after being sure, rerun the script with the --yes option to make it effectively delete them.
OPTIONS
nexus URL
Inform the Nexus 3 base URL.
This option is required.
repository NAME
Delete components from this repository only.
group NAME
Delete components from this group only.
name NAME
Delete components with this name only.
version VERSION
Delete components with this version only.
yes
By default the script does not delete the components, it only shows which components were found. Specify this option to make it really delete them.
debug
Make it more verbose.
help
Shows the option syntax and exits.
ENVIRONMENT
In order to connect to Nexus we need credentials. They're asked interactively, but you may pass them via these envorinment variables too:
- nexususer
- nexuspass
COPYRIGHT
Copyright 2018 CPqD.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Gustavo Chaves <gustavo@cpqd.com.br>