src/ServiceManagement/ServiceManagementRestProxy.php
public function deleteHostedService($name)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_DELETE);
        $context->setPath($this->_getHostedServicePath($name));
        $context->addStatusCode(Resources::STATUS_OK);

        $this->sendHttpContext($context);
    }
public function deleteHostedService($name)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_DELETE);
        $context->setPath($this->_getHostedServicePath($name));
        $context->addStatusCode(Resources::STATUS_OK);

        $this->sendHttpContext($context);
    }
public function deleteHostedService ( $ name ) { Validate :: isString ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ name , 'name' ) ; $ context = new HttpCallContext ( ) ; $ context -> setMethod ( Resources :: HTTP_DELETE ) ; $ context -> setPath ( $ this -> _getHostedServicePath ( $ name ) ) ; $ context -> addStatusCode ( Resources :: STATUS_OK ) ; $ this -> sendHttpContext ( $ context ) ; }
Deletes the specified hosted service from Windows Azure.

Before you can delete a hosted service, you must delete any deployments it
has. Attempting to delete a hosted service that has deployments results in
an error. You can call the deleteDeployment API to delete a hosted service's
deployments.

@param string $name The name for the hosted service

@see http://msdn.microsoft.com/en-us/library/windowsazure/gg441305.aspx
Deletes the specified hosted service from Windows Azure .