Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteVolumeCommand

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.

example

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);
see

DeleteVolumeCommandInput for command's input shape.

see

DeleteVolumeCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteVolumeCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteVolumeCommandInput, DeleteVolumeCommandOutput>

Methods

Static getEndpointParameterInstructions