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
481885
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;
        });
    }
974910
public static function deleteByIds($ids, array $params = [])
    {
        if (!is_array($ids)) {
            $ids = explode(",", $ids);
        }

        $m = new static;
        $pk = $m->getPrimaryKey();
        $records = [];
        foreach ($ids as $id) {
            $records[] = [$pk => $id];
        }

        return static::bulkDelete($records, $params);
    }
39422
public function delete($itemId, $attachmentId, $optParams = array()) {
      $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('delete', array($params));
      return $data;
    }
239725
public function delete_helper( $params ) {

		$params       = (object) $params;
		$params->type = 'helper';

		return $this->delete_object( $params );
	}
1144593
public function delete($itemId, $attachmentId, $optParams = array())
  {
    $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
523562
public function update($params, $optParams = [])
    {
        if (!$params instanceof Cloud) {
            throw new InvalidParamException(Cloud::class . ' is required!');
        }

        return $this->sendRequest([], [
            'restAction' => 'update',
            'restId' => $params->id,
            'postParams' => $params->toArray(),
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Cloud($response->data) : $response;
        });
    }
1273954
public function view($params, $optParams = [])
    {
        if ($params instanceof Firewall) {
            $params = $params->id;
        }

        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Firewall($response->data) : $response;
        });
    }
276651
public static function deleteContact($resourceName=null, $optParams=[])
    {
        if (!$resourceName) {
            
            self::checkFind();

            $resourceName = self::$resourceName;
        }

        return self::getService()->people->deleteContact($resourceName, $optParams);
    }
1109585
public function delete($customerId, $resourceId, $optParams = array())
  {
    $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
648360
public function supprimerActualite($params = array())
    {
        if (isset($this->variablesGet['idActuSuppr']) && $this->variablesGet['idActuSuppr']!='') {
            $req = "DELETE FROM actualites WHERE idActualite = '".$this->variablesGet['idActuSuppr']."'";
            $res = $this->connexionBdd->requete($req);

            // fichiers :
            if (file_exists($this->getCheminPhysique()."images/actualites/".$this->variablesGet['idActuSuppr']."/")) {
                exec("rm -rf ".$this->getCheminPhysique()."images/actualites/".$this->variablesGet['idActuSuppr']."/* ");
            }
        }
    }
992573
public function deleteAll(array $queryParams = [])
    {
        $response = $this->api->applications()->deleteAll($queryParams);

        return new BaseResponse($response);
    }
588790
public function delete($folderId, $childId, $optParams = array())
  {
    $params = array('folderId' => $folderId, 'childId' => $childId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
953959
private function tagCloud( $params )
    {
        $parentNodeID = 0;
        $classIdentifier = '';
        $classIdentifierSQL = '';
        $pathString = '';
        $parentNodeIDSQL = '';
        $dbParams = array();
        $orderBySql = 'ORDER BY eztags.keyword ASC';

        if ( isset( $params['class_identifier'] ) )
            $classIdentifier = $params['class_identifier'];

        if ( isset( $params['parent_node_id'] ) )
            $parentNodeID = $params['parent_node_id'];

        if ( isset( $params['limit'] ) )
            $dbParams['limit'] = $params['limit'];

        if ( isset( $params['offset'] ) )
            $dbParams['offset'] = $params['offset'];

        if ( isset( $params['sort_by'] ) && is_array( $params['sort_by'] ) && !empty( $params['sort_by'] ) )
        {
            $orderBySql = 'ORDER BY ';
            $orderArr = is_string( $params['sort_by'][0] ) ? array( $params['sort_by'] ) : $params['sort_by'];

            foreach ( $orderArr as $key => $order )
            {
                if ( $key !== 0 ) $orderBySql .= ', ';
                $direction = isset( $order[1] ) ? $order[1] : false;
                switch( $order[0] )
                {
                    case 'keyword':
                    {
                        $orderBySql .= 'eztags.keyword ' . ( $direction ? 'ASC' : 'DESC' );
                    }break;
                    case 'count':
                    {
                        $orderBySql .= 'keyword_count ' . ( $direction ? 'ASC' : 'DESC' );
                    }break;
                }
            }
        }

        $db = eZDB::instance();

        if ( $classIdentifier )
        {
            $classID = eZContentObjectTreeNode::classIDByIdentifier( $classIdentifier );
            $classIdentifierSQL = "AND ezcontentobject.contentclass_id = '" . $classID . "'";
        }

        if ( $parentNodeID )
        {
            $node = eZContentObjectTreeNode::fetch( $parentNodeID );
            if ( $node )
                $pathString = "AND ezcontentobject_tree.path_string like '" . $node->attribute( 'path_string' ) . "%'";
            $parentNodeIDSQL = "AND ezcontentobject_tree.node_id != " . (int) $parentNodeID;
        }

        $showInvisibleNodesCond = eZContentObjectTreeNode::createShowInvisibleSQLString( true, false );
        $limitation = false;
        $limitationList = eZContentObjectTreeNode::getLimitationList( $limitation );
        $sqlPermissionChecking = eZContentObjectTreeNode::createPermissionCheckingSQL( $limitationList );

        $languageFilter = 'AND ' . eZContentLanguage::languagesSQLFilter( 'ezcontentobject' );
        $languageFilter .= 'AND ' . eZContentLanguage::languagesSQLFilter( 'ezcontentobject_attribute', 'language_id' );

        $rs = $db->arrayQuery( "SELECT eztags.id, eztags.keyword, COUNT(DISTINCT ezcontentobject.id) AS keyword_count
                                FROM eztags_attribute_link
                                LEFT JOIN ezcontentobject_attribute
                                    ON eztags_attribute_link.objectattribute_id = ezcontentobject_attribute.id
                                    AND eztags_attribute_link.objectattribute_version = ezcontentobject_attribute.version
                                LEFT JOIN ezcontentobject
                                    ON ezcontentobject_attribute.contentobject_id = ezcontentobject.id
                                LEFT JOIN ezcontentobject_tree
                                    ON ezcontentobject_attribute.contentobject_id = ezcontentobject_tree.contentobject_id
                                LEFT JOIN eztags
                                    ON eztags.id = eztags_attribute_link.keyword_id
                                LEFT JOIN eztags_keyword
                                    ON eztags.id = eztags_keyword.keyword_id
                                $sqlPermissionChecking[from]
                                WHERE " . eZContentLanguage::languagesSQLFilter( 'eztags' ) . "
                                    AND " . eZContentLanguage::sqlFilter( 'eztags_keyword', 'eztags' ) . "
                                    AND ezcontentobject.status = " . eZContentObject::STATUS_PUBLISHED . "
                                    AND ezcontentobject_attribute.version = ezcontentobject.current_version
                                    AND ezcontentobject_tree.main_node_id = ezcontentobject_tree.node_id
                                    $pathString
                                    $parentNodeIDSQL
                                    $classIdentifierSQL
                                    $showInvisibleNodesCond
                                    $sqlPermissionChecking[where]
                                    $languageFilter
                                GROUP BY eztags.id, eztags.keyword
                                $orderBySql", $dbParams );

        $tagsCountList = array();
        foreach( $rs as $row )
        {
            $tagsCountList[$row['id']] = $row['keyword_count'];
        }

        if ( empty( $tagsCountList ) )
            return array();
        
        /** @var eZTagsObject[] $tagObjects */
        $tagObjects = eZTagsObject::fetchList( array( 'id' => array( array_keys( $tagsCountList ) ) ) );
        if ( !is_array( $tagObjects ) || empty( $tagObjects ) )
            return array();

        $tagSortArray = array();
        $tagKeywords = array();
        $tagCounts = array();
        foreach ( $tagObjects as $tag )
        {
            $tagKeyword = $tag->attribute( 'keyword' );
            $tagCount = $tagsCountList[$tag->attribute( 'id' )];

            $tagSortArray[] = array(
                'keyword'   => $tagKeyword,
                'count'     => $tagCount,
                'tag'       => $tag
            );

            $tagKeywords[] = $tagKeyword;
            $tagCounts[] = $tagCount;
        }

        if ( isset( $params['post_sort_by'] ) )
        {
            if ( $params['post_sort_by'] === 'keyword' )
                array_multisort( $tagKeywords, SORT_ASC, SORT_LOCALE_STRING, $tagSortArray );
            else if ( $params['post_sort_by'] === 'keyword_reverse' )
                array_multisort( $tagKeywords, SORT_DESC, SORT_LOCALE_STRING, $tagSortArray );
            else if ( $params['post_sort_by'] === 'count' )
                array_multisort( $tagCounts, SORT_ASC, SORT_NUMERIC, $tagSortArray );
            else if ( $params['post_sort_by'] === 'count_reverse' )
                array_multisort( $tagCounts, SORT_DESC, SORT_NUMERIC, $tagSortArray );
        }

        $this->normalizeTagCounts( $tagSortArray, $tagCounts );

        return $tagSortArray;
    }
957261
public function delete($params = null, $apiKey = null)
    {
        return self::_delete(get_class(), $params, true);
    }
742260
public function delete($project, $user, $optParams = array())
  {
    $params = array('project' => $project, 'user' => $user);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params), "Computeaccounts_Operation");
  }
1049163
public function delete($customer, $roleId, $optParams = array())
  {
    $params = array('customer' => $customer, 'roleId' => $roleId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
1257435
public function remove($id, $optParams = array()) {
      $params = array('id' => $id);
      $params = array_merge($params, $optParams);
      $data = $this->__call('remove', array($params));
      return $data;
    }