{
// services need a ThreadLocal variable to test karma
RedbackAuthenticationThreadLocal.set( getRedbackRequestInformation() );
try
{
Artifact artifact = new Artifact();
artifact.setGroupId( groupId );
artifact.setArtifactId( artifactId );
artifact.setVersion( version );
artifact.setClassifier( classifier );
artifact.setPackaging( type );
repositoriesService.deleteArtifact( artifact, repositoryId );
}
catch ( ArchivaRestServiceException e )
{