public function removeFoxxApp($mountPoint, array $options = [])
    {
        try {
            $response = $this->getConnection()->put(Urls::URL_FOXX_UNINSTALL, json_encode(['mount' => $mountPoint]));
            if ($response->getHttpCode() < 400) {
                return $response->getJson();
            }

            throw new ClientException(sprintf('Foxx uninstall failed (Code: %d)', $response->getHttpCode()));
        } catch (ServerException $e) {
            if ($e->getMessage() === 'Service not found') {
                throw new ClientException(sprintf('Mount point %s not present.', $mountPoint));
            }
            throw new ClientException($e->getMessage());
        }
    }
public function removeFoxxApp($mountPoint, array $options = [])
    {
        try {
            $response = $this->getConnection()->put(Urls::URL_FOXX_UNINSTALL, json_encode(['mount' => $mountPoint]));
            if ($response->getHttpCode() < 400) {
                return $response->getJson();
            }

            throw new ClientException(sprintf('Foxx uninstall failed (Code: %d)', $response->getHttpCode()));
        } catch (ServerException $e) {
            if ($e->getMessage() === 'Service not found') {
                throw new ClientException(sprintf('Mount point %s not present.', $mountPoint));
            }
            throw new ClientException($e->getMessage());
        }
    }
public function removeFoxxApp ( $ mountPoint , array $ options = [ ] ) { try { $ response = $ this -> getConnection ( ) -> put ( Urls :: URL_FOXX_UNINSTALL , json_encode ( [ 'mount' => $ mountPoint ] ) ) ; if ( $ response -> getHttpCode ( ) < 400 ) { return $ response -> getJson ( ) ; } throw new ClientException ( sprintf ( 'Foxx uninstall failed (Code: %d)' , $ response -> getHttpCode ( ) ) ) ; } catch ( ServerException $ e ) { if ( $ e -> getMessage ( ) === 'Service not found' ) { throw new ClientException ( sprintf ( 'Mount point %s not present.' , $ mountPoint ) ) ; } throw new ClientException ( $ e -> getMessage ( ) ) ; } }
Remove a foxx-app.

@throws ClientException

@param string $mountPoint - the mount-point for the app, must begin with a '/'
@param array  $options    - for future usage

@return array - the server response

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Remove a foxx - app .