nft delete rule inet filter input handle 5

Category: Security & Hardening

nft delete rule inet filter input handle 5

Delete one rule by its handle number

Removes the single rule with handle 5 from the input chain, the precise way to undo one nftables rule. Find the handle with nft -a list ruleset; the numbers are not stable across reloads. To delete a whole chain, use nft delete chain, and nft delete table removes everything in it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.