Delete Linode Firewall Rule

Is their any way to delete linode firewall rule from linode-cli as per the support command line argument I can't see any argument to delete the update linode firewall rule.

linode-cli firewalls

1 Reply

It looks like you can only ACCEPT or DROP individual firewall rules via the cli:

There is the option to delete your entire Firewall via the cli:

But depending on the number of rules you have, that might not be the most elegant solution to your issue.

I looked into whether using the API as an alternative might be a better solution. It looks like rules are treated as a whole in the API. So if you want to do the same thing via API calls you should GET your rules here:

After you get what you need, you would need to then PUT the full ruleset back at this endpoint:

Hope that helps!



Please enter an answer

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct