Controller/DeploymentController.php
public function removeMediaFromDeploymentSite($id, $mediaIds)
    {
        $parameters = [
            'query' => ['mediaIds' => $mediaIds],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->delete('v1/deployment/' . $id . '/media', $parameters);

        return $result;
    }
public function removeMediaFromDeploymentSite($id, $mediaIds)
    {
        $parameters = [
            'query' => ['mediaIds' => $mediaIds],
            'body' => json_encode([], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->delete('v1/deployment/' . $id . '/media', $parameters);

        return $result;
    }
Undeploy Media from a DeploymentSite.

Undeploy Media from a DeploymentSite, this is an asynchronous method.

@param  int    $id       deploymentSite to undeploy from
@param  string $mediaIds a comma separated string of media ids we should undeploy
@return array