Amazon EBS · Arazzo Workflow

Amazon EBS Detach and Delete Volume

Version 1.0.0

Detach an EBS volume from its instance, confirm it, then delete it.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub Amazon Web ServicesBlock StorageEBSEC2SnapshotsStorageVolumesArazzoWorkflows

Provider

amazon-ebs

Workflows

detach-and-delete-volume
Detach an EBS volume and delete it once it is no longer attached.
Detaches the supplied volume, confirms its state via describe, and deletes the volume to reclaim storage.
3 steps inputs: force, instanceId, volumeId outputs: deletedVolumeId, finalVolumes
1
detachVolume
Detach the supplied volume from its instance.
2
confirmDetached
Read the volume back to confirm it is detached before deleting it.
3
deleteVolume
Delete the volume to reclaim its storage.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EBS Detach and Delete Volume
  summary: Detach an EBS volume from its instance, confirm it, then delete it.
  description: >-
    A teardown counterpart to the provisioning flows, adapted to the EC2-style
    EBS operations the spec actually supports. It detaches the supplied volume
    from its instance, reads the volume back to confirm it is no longer in use,
    and then deletes the volume. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: amazonEbsAmazonElasticBlockStoreEbsApiApi
  url: ../openapi/amazon-ebs-amazon-ebs-amazon-elastic-block-store-ebs-api-api-openapi.yml
  type: openapi
- name: deletevolumeApi
  url: ../openapi/amazon-ebs-deletevolume-api-openapi.yml
  type: openapi
- name: detachvolumeApi
  url: ../openapi/amazon-ebs-detachvolume-api-openapi.yml
  type: openapi
workflows:
- workflowId: detach-and-delete-volume
  summary: Detach an EBS volume and delete it once it is no longer attached.
  description: >-
    Detaches the supplied volume, confirms its state via describe, and deletes
    the volume to reclaim storage.
  inputs:
    type: object
    required:
    - volumeId
    properties:
      volumeId:
        type: string
        description: The ID of the volume to detach and delete.
      instanceId:
        type: string
        description: The ID of the instance the volume is attached to.
      force:
        type: boolean
        description: Forces detachment if a previous attempt did not occur cleanly.
  steps:
  - stepId: detachVolume
    description: >-
      Detach the supplied volume from its instance.
    operationId: detachVolume
    parameters:
    - name: Action
      in: query
      value: DetachVolume
    - name: Version
      in: query
      value: '2016-11-15'
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        VolumeId: $inputs.volumeId
        InstanceId: $inputs.instanceId
        Force: $inputs.force
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      statusCode: $statusCode
  - stepId: confirmDetached
    description: >-
      Read the volume back to confirm it is detached before deleting it.
    operationId: describeVolumes
    parameters:
    - name: Action
      in: query
      value: DescribeVolumes
    - name: Version
      in: query
      value: '2016-11-15'
    - name: VolumeId
      in: query
      value: $inputs.volumeId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      volumes: $response.body#/volumeSet
  - stepId: deleteVolume
    description: >-
      Delete the volume to reclaim its storage.
    operationId: deleteVolume
    parameters:
    - name: Action
      in: query
      value: DeleteVolume
    - name: Version
      in: query
      value: '2016-11-15'
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        VolumeId: $inputs.volumeId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      statusCode: $statusCode
  outputs:
    deletedVolumeId: $inputs.volumeId
    finalVolumes: $steps.confirmDetached.outputs.volumes

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-ebs-detach-and-delete-volume-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.