On Mon, Jan 02, 2023 at 03:38:22PM +0100, Fernando Fernandez Mancera wrote: > "destroy" command performs a deletion as "delete" command but does not fail > when the object does not exist. As there is no NLM_F_* flag for ignoring such > error, it needs to be ignored directly on error handling. > > Example of use: > > # nft list ruleset > table ip filter { > chain output { > } > } > # nft destroy table ip missingtable > # echo $? > 0 > # nft list ruleset > table ip filter { > chain output { > } > } Applied, thanks. [...] > create mode 100755 tests/shell/testcases/rule_management/0011destroy_0 > create mode 100755 tests/shell/testcases/rule_management/0012destroy_0 > create mode 100644 tests/shell/testcases/rule_management/dumps/0011destroy_0.nft > create mode 100644 tests/shell/testcases/rule_management/dumps/0012destroy_0.nft More tests for other objects would be good to have.