public void deleteLicense ( final String licName ) { final DbLicense dbLicense = getLicense ( licName ) ; repoHandler . deleteLicense ( dbLicense . getName ( ) ) ; final FiltersHolder filters = new FiltersHolder ( ) ; final LicenseIdFilter licenseIdFilter = new LicenseIdFilter ( licName ) ; filters . addFilter ( licenseIdFilter ) ; for ( final DbArtifact artifact : repoHandler . getArtifacts ( filters ) ) { repoHandler . removeLicenseFromArtifact ( artifact , licName , this ) ; } }
Delete a license from the repository