Deletes tags from the specified Amazon EC2 resources.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc. Pass a string for a single value, or an indexed array for multiple values. |
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Delete a tag.
$ec2 = new AmazonEC2();
$response = $ec2->delete_tags('aki-00006369', array(
'Tag' => array(
array('Key' => 'alpha', 'Value' => 'abc'),
array('Key' => 'alpha', 'Value' => 'def'),
array('Key' => 'beta', 'Value' => 'ghi'),
)
));
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (20 lines) | View on GitHub

