public function deleteByTag($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['tag' => $params];
        }

        return $this->sendRequest(['cloudId', 'tag'], [
            'restAction' => 'delete',
            'uri' => '/c/<cloudId>/t/<tag>',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Job($response->data) : $response;
        });
    }
public function deleteByTag($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['tag' => $params];
        }

        return $this->sendRequest(['cloudId', 'tag'], [
            'restAction' => 'delete',
            'uri' => '/c/<cloudId>/t/<tag>',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Job($response->data) : $response;
        });
    }
public function deleteByTag ( $ params , $ optParams = [ ] ) { if ( is_string ( $ params ) ) { $ params = [ 'tag' => $ params ] ; } return $ this -> sendRequest ( [ 'cloudId' , 'tag' ] , [ 'restAction' => 'delete' , 'uri' => '/c/<cloudId>/t/<tag>' , 'params' => $ params , 'getParams' => $ optParams , ] , function ( $ response ) { return isset ( $ response -> data ) ? new Job ( $ response -> data ) : $ response ; } ) ; }
Deletes images by tag.

@param array $params Required API parameters

<li>cloudId - cloud ID
<li>tag - image tag
@param array $optParams Optional API parameters

@return Job|Response
Deletes images by tag .