public function getMediaDelete($id, $deleteFrom = 'all')
    {
        $uri = 'media.delete';
        $uriData = [
            'id' => $id,
            'delete_from' => $deleteFrom
        ];

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function getMediaDelete($id, $deleteFrom = 'all')
    {
        $uri = 'media.delete';
        $uriData = [
            'id' => $id,
            'delete_from' => $deleteFrom
        ];

        try {
            $response = $this->_request(
                [
                    'uri' => $uri,
                    'type' => 'get',
                    'data' => $uriData
                ]
            );
        } catch (\Exception $e) {
            throw new InvalidException($e->getMessage());
        }

        return $response->getBody()->getContents();
    }
public function getMediaDelete ( $ id , $ deleteFrom = 'all' ) { $ uri = 'media.delete' ; $ uriData = [ 'id' => $ id , 'delete_from' => $ deleteFrom ] ; try { $ response = $ this -> _request ( [ 'uri' => $ uri , 'type' => 'get' , 'data' => $ uriData ] ) ; } catch ( \ Exception $ e ) { throw new InvalidException ( $ e -> getMessage ( ) ) ; } return $ response -> getBody ( ) -> getContents ( ) ; }
Delete a media from the wanted list

@param int $id media ID(s) you want to delete. (comma separated)
@param string $deleteFrom all (default), wanted, manage
@return string
@throws InvalidException
Delete a media from the wanted list