public function deleteAttributes($domainName, $itemName, array $attributes = array())
{
$params = array();
$params['Action'] = 'DeleteAttributes';
$params['DomainName'] = $domainName;
$params['ItemName'] = $itemName;
$attributeIndex = 0;
foreach ($attributes as $attribute) {
$params['Attribute.' . $attributeIndex . '.Name'] = $attribute->getName();
foreach ($attribute->getValues() as $value) {
$params['Attribute.' . $attributeIndex . '.Value'] = $value;
}
$attributeIndex++;
}
$response = $this->_sendRequest($params);
return true;
}
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-02-26T06:19:37.000+0000
Can you please provide additional information about what you are trying to do? In what other ways can you delete an attribute except by name?