// TODO: this should be in the storage mechanism so that it is all tied together
// delete from file system
if ( !snapshotVersion )
{
repository.deleteVersion( ref );
}
else
{
Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
log.debug( "related: {}", related );