Delete a volume

Delete a Block Storage volume. Some conditions apply when deleting a volume:

  • Deleting a volume can't be undone.

  • Deleting stops billing for the volume. You'll be billed for the time the volume was active during the current billing period.

  • You can't delete a volume that's attached to a Linode currently being migrated. You need to wait for the migration to complete.

  • You can't delete a volume that has a cannot_delete or cannot_delete_with_subresources resource lock set for it.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Permissions: delete_volume
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: volumes:read_write

CLI

linode-cli volumes delete 12345

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

The unique identifier for the target volume. Run the List volumes operation and store the id for the target volume as your volumeId.

Responses

Language
Credentials
Response
Choose an example:
application/json