HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ec2/detach-volume.rst
**To detach a volume from an instance**

This example command detaches the volume (``vol-049df61146c4d7901``) from the instance it is attached to.

Command::

  aws ec2 detach-volume --volume-id vol-1234567890abcdef0

Output::

   {
       "AttachTime": "2014-02-27T19:23:06.000Z",
       "InstanceId": "i-1234567890abcdef0",
       "VolumeId": "vol-049df61146c4d7901",
       "State": "detaching",
       "Device": "/dev/sdb"
   }