Scalr\Service\Aws\Ec2\Handler\TagHandler::delete PHP Method

delete() public method

Deletes a specific set of tags from a specific set of resources. This call is designed to follow a DescribeTags call. You first determine what tags a resource has, and then you call DeleteTags with the resource ID and the specific tags you want to delete.
public delete ( ListDataType | array | string $resourceIdList, Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array $tagList ) : boolean
$resourceIdList Scalr\Service\Aws\DataType\ListDataType | array | string The ID of a resource to tag. For example, ami-1a2b3c4d. You can specify multiple resources to assign the tags to.
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array The key/value pair list of the Tags.
return boolean Returns true on success or throws an exception otherwise
    public function delete($resourceIdList, $tagList)
    {
        if (!$tagList instanceof ResourceTagSetList) {
            $tagList = new ResourceTagSetList($tagList);
        }
        if (!$resourceIdList instanceof ListDataType) {
            $resourceIdList = new ListDataType($resourceIdList);
        }
        return $this->getEc2()->getApiHandler()->deleteTags($resourceIdList, $tagList);
    }