public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_BadRequest('wrong request mode');
        }
        $deliveryExecutionUri = tao_helpers_Uri::decode($this->getRequestParameter('uri'));
        $de = $this->getServiceProxy()->getDeliveryExecution($deliveryExecutionUri);

        try {
            $this->getResultStorage($de->getDelivery());

            $deleted = $this->getResultsService()->deleteResult($deliveryExecutionUri);

            $this->returnJson(array('deleted' => $deleted));
        } catch (\common_exception_Error $e) {
            $this->returnJson(array('error' => $e->getMessage()));
        }
    }
public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_BadRequest('wrong request mode');
        }
        $deliveryExecutionUri = tao_helpers_Uri::decode($this->getRequestParameter('uri'));
        $de = $this->getServiceProxy()->getDeliveryExecution($deliveryExecutionUri);

        try {
            $this->getResultStorage($de->getDelivery());

            $deleted = $this->getResultsService()->deleteResult($deliveryExecutionUri);

            $this->returnJson(array('deleted' => $deleted));
        } catch (\common_exception_Error $e) {
            $this->returnJson(array('error' => $e->getMessage()));
        }
    }
public function delete ( ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { throw new common_exception_BadRequest ( 'wrong request mode' ) ; } $ deliveryExecutionUri = tao_helpers_Uri :: decode ( $ this -> getRequestParameter ( 'uri' ) ) ; $ de = $ this -> getServiceProxy ( ) -> getDeliveryExecution ( $ deliveryExecutionUri ) ; try { $ this -> getResultStorage ( $ de -> getDelivery ( ) ) ; $ deleted = $ this -> getResultsService ( ) -> deleteResult ( $ deliveryExecutionUri ) ; $ this -> returnJson ( array ( 'deleted' => $ deleted ) ) ; } catch ( \ common_exception_Error $ e ) { $ this -> returnJson ( array ( 'error' => $ e -> getMessage ( ) ) ) ; } }
Delete a result or a result class
@throws Exception
@throws common_exception_BadRequest
@return string json {'deleted' : true}
Delete a result or a result class