Update content

Detaching a Block Storage volume via the API

Reviewed on 01 December 2022Published on 10 January 2020
Security & Identity (IAM):

You may need certain IAM permissions to carry out some actions described on this page. This means:

  • you are the Owner of the Scaleway Organization in which the actions will be carried out, or
  • you are an IAM user of the Organization, with a policy granting you the necessary permission sets

To detach a block volume from a running Instance, relaunch the API call and omit the volume you want to hot unplug. Like so:

curl -q \
-H "X-Auth-Token: $SECRET_KEY" \
-H 'Content-Type: application/json' \
-d '{
"volumes": {
"0": "7fe25caf-0a68-46a7-aeb9-63a278d33e2b",
}' \
See Also