This is a sample project using artifactory-client-java listing all artifacts in your Artifactory.
$ ./gradlew build
$ ./gradlew -q execute
Artifactory URL [http://artifactory-ci.tomtomgroup.com/artifactory]:
User name [root]:
Password []:
[...]
com.tomtom/MyGreatPackage/myGreatArtifact.zip
com.tomtom/MyGreaterPackage/myGreaterArtifact.zip
[...]
Re-enable the Artifactory client's debug logs in Example.java.
Here a variant deleting all artifacts of a repo based on criteria.