Delete Linode API v4, Do I need to make anything first?

In API v3 here:

https://www.linode.com/api/linode/linode.delete

it says:

"To prevent accidental deletes, this requires the Linode has no Disk images. You must first delete its disk images."

In API v4 here

https://developers.linode.com/v4/refere … tances/$id">https://developers.linode.com/v4/reference/endpoints/linode/instances/$id

the DELETE says:

"Deletes this Linode. This action cannot be undone."

So there is no need to shutdown or delete its disk images or anything else

I am asking just to be sure

1 Reply

Hello,

You are correct. With API v4 there is no need to power down the Linode or delete the disk images. It will take care of removing the billing packages as well.

In case you need to find the Linode ID, you can do so via the CLI, like so:

>$ linode-cli linodes list

Or via a shell command:

>$ curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/linode/instances

Also, in case you were not aware API v3 is deprecated so we recommend only using API v4 moving forward. Hope that helps!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct