Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).
available
The volume can remain in the deleting state for several minutes.
deleting
For more information, see Delete an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DeleteVolumeCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DeleteVolumeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DeleteVolumeCommand(input); const response = await client.send(command);
DeleteVolumeCommandInput for command's input shape.
input
DeleteVolumeCommandOutput for command's response shape.
response
config for EC2Client's config shape.
config
Deletes the specified EBS volume. The volume must be in the
available
state (not attached to an instance).The volume can remain in the
deleting
state for several minutes.For more information, see Delete an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DeleteVolumeCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DeleteVolumeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DeleteVolumeCommand(input); const response = await client.send(command);
DeleteVolumeCommandInput for command's
input
shape.DeleteVolumeCommandOutput for command's
response
shape.config for EC2Client's
config
shape.