src/MediaServices/MediaServicesRestProxy.php
public function removeDeliveryPolicyFromAsset($asset, $policy)
    {
        $assetId = Utilities::getEntityId(
            $asset,
            'WindowsAzure\MediaServices\Models\Asset'
        );

        $policyId = Utilities::getEntityId(
            $policy,
            'WindowsAzure\MediaServices\Models\AssetDeliveryPolicy'
        );

        $method = Resources::HTTP_DELETE;
        $path = "Assets('{$assetId}')/\$links/DeliveryPolicies('{$policyId}')";
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $statusCode = Resources::STATUS_NO_CONTENT;

        $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );
    }
public function removeDeliveryPolicyFromAsset($asset, $policy)
    {
        $assetId = Utilities::getEntityId(
            $asset,
            'WindowsAzure\MediaServices\Models\Asset'
        );

        $policyId = Utilities::getEntityId(
            $policy,
            'WindowsAzure\MediaServices\Models\AssetDeliveryPolicy'
        );

        $method = Resources::HTTP_DELETE;
        $path = "Assets('{$assetId}')/\$links/DeliveryPolicies('{$policyId}')";
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $statusCode = Resources::STATUS_NO_CONTENT;

        $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );
    }
public function removeDeliveryPolicyFromAsset ( $ asset , $ policy ) { $ assetId = Utilities :: getEntityId ( $ asset , 'WindowsAzure\MediaServices\Models\Asset' ) ; $ policyId = Utilities :: getEntityId ( $ policy , 'WindowsAzure\MediaServices\Models\AssetDeliveryPolicy' ) ; $ method = Resources :: HTTP_DELETE ; $ path = "Assets('{$assetId}')/\$links/DeliveryPolicies('{$policyId}')" ; $ headers = [ ] ; $ postParams = [ ] ; $ queryParams = [ ] ; $ statusCode = Resources :: STATUS_NO_CONTENT ; $ this -> sendHttp ( $ method , $ headers , $ queryParams , $ postParams , $ path , $ statusCode ) ; }
Remove AssetDeliveryPolicy from Asset.

@param Asset|string               $asset  Asset to remove a AssetDeliveryPolicy or
Asset id
@param AssetDeliveryPolicy|string $policy DeliveryPolicy to remove or
DeliveryPolicy id
Remove AssetDeliveryPolicy from Asset .