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

        $context = new HttpCallContext();
        $path = $this->_getDeploymentPath($name, $options);
        $context->setMethod(Resources::HTTP_DELETE);
        $context->setPath($path);
        $context->addStatusCode(Resources::STATUS_ACCEPTED);

        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
public function deleteDeployment($name, GetDeploymentOptions $options)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::notNullOrEmpty($options, 'options');

        $context = new HttpCallContext();
        $path = $this->_getDeploymentPath($name, $options);
        $context->setMethod(Resources::HTTP_DELETE);
        $context->setPath($path);
        $context->addStatusCode(Resources::STATUS_ACCEPTED);

        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
public function deleteDeployment ( $ name , GetDeploymentOptions $ options ) { Validate :: isString ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ options , 'options' ) ; $ context = new HttpCallContext ( ) ; $ path = $ this -> _getDeploymentPath ( $ name , $ options ) ; $ context -> setMethod ( Resources :: HTTP_DELETE ) ; $ context -> setPath ( $ path ) ; $ context -> addStatusCode ( Resources :: STATUS_ACCEPTED ) ; $ response = $ this -> sendHttpContext ( $ context ) ; return AsynchronousOperationResult :: create ( HttpClient :: getResponseHeaders ( $ response ) ) ; }
Deletes the specified deployment.

Note that you can delete a deployment either by specifying the deployment
environment (staging or production), or by specifying the deployment's unique
name.

@param string               $name    The hosted service name
@param GetDeploymentOptions $options The optional parameters

@return AsynchronousOperationResult

@see http://msdn.microsoft.com/en-us/library/windowsazure/ee460815.aspx
Deletes the specified deployment .