code: private void removeDeployment(File deployment) throws IOException
     {
        if (deployment == null)
           throw new IllegalArgumentException("Deployment is null");
  
        if (deployment.exists() || (shrinkwrapDeployments != null && shrinkwrapDeployments.contains(deployment)))
        {
           shrinkwrapDeployments.remove(deployment);
  
           if (shrinkwrapDeployments.isEmpty())
              shrinkwrapDeployments = null;
  
           recursiveDelete(deployment);
        }
     }
docs: Remove ShrinkWrap deployment
  @param deployment The deployment
  @exception IOException Thrown if the deployment cant be removed