Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Simply, is there any quick alternative of iptables -F command (that just "deletes everything") for nftables?

Such thing wouldn't have much theoretical purposes, but it's usually a lifesaver for administration of bad/gone-wrong setups.

share|improve this question
up vote 2 down vote accepted

I believe you are looking for nft flush commmand. The syntax is:

$ nft flush table <name>

You can also flush chain:

$ nft flush chain <table> <name>

Alternatively you can always use nft delete rule command to delete any rules that you have just applied.

share|improve this answer
Uh, completely missed that in docs. Thanks! – exa May 14 '14 at 18:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.