@Override
   protected void executeInternal(ServiceHub serviceHub)
         throws DockerAccessException, MojoExecutionException  {
       if(getVolumes() == null){
           log.info("No volume configuration found.");
           return;
       }
       VolumeService volService = serviceHub.getVolumeService();

       for ( VolumeConfiguration volume : getVolumes()) {
           log.info("Removing volume %s", volume.getName());
           volService.removeVolume(volume.getName());
       }
   }
Mojo to remove volumes created with {@link VolumeCreateMojo}

 @author Tom Burton
src/main/java/io/fabric8/maven/docker/VolumeRemoveMojo.java