public function remove(Model\EnvironmentInterface $environment)
    {
        $this->pmProxyClient->delete('/environments/' . $environment->getNormalizedName());
        if ($environment->hasChildren()) {
            foreach ($environment->getChildren() as $child) {
                /** @var Model\EnvironmentInterface $child */
                $this->remove($child);
            }
        }
        return $this;
    }
public function remove(Model\EnvironmentInterface $environment)
    {
        $this->pmProxyClient->delete('/environments/' . $environment->getNormalizedName());
        if ($environment->hasChildren()) {
            foreach ($environment->getChildren() as $child) {
                /** @var Model\EnvironmentInterface $child */
                $this->remove($child);
            }
        }
        return $this;
    }
public function remove ( Model \ EnvironmentInterface $ environment ) { $ this -> pmProxyClient -> delete ( '/environments/' . $ environment -> getNormalizedName ( ) ) ; if ( $ environment -> hasChildren ( ) ) { foreach ( $ environment -> getChildren ( ) as $ child ) { /** @var Model\EnvironmentInterface $child */ $ this -> remove ( $ child ) ; } } return $ this ; }
Remove an environment on the Puppet Master

@param Model\EnvironmentInterface $environment
@return Environment
Remove an environment on the Puppet Master