Deletes a previously created volume. Once successfully deleted, a new volume can be created with the same name.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID of the EBS volume to delete. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Delete an EBS volume.
// Instantiate the class $ec2 = new AmazonEC2(); // Delete the volume $response = $ec2->delete_volume('vol-fc482995'); // Success? var_dump($response->isOK());
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (7 lines) | View on GitHub