This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

How to delete packets in wireshark GUI?

asked Aug 11 '25

I have a capture where I manually want to remove a few packets. I'm able to filter and select them using standard filter tools, however, I'm unable to remove them.

I know there's editcap, which I'd use for heavier editing. I don't want to switch to console just to remove a packet.

This works OK, but is a little cumbersome:

  • Select all packets I wish to keep (e.g. via filter or CTRL + click)
  • File - Export Specified Packets
  • In the dialog, I select Selected packets only instead of "All packets".
  • Export to a temporary file, then overwrite original

Comments

There's a good chance the list is out of date, but try here:
Wiki: Capture file editors and/or anonymizers

User 2763 ( Aug 11 '25 )

Thanks, Chuck! So since 2010 no one did care enough to have a more convenient method. Guess it's fine then, I'm also not sure if it's worth the effort for an extra feature.

User 33722 ( Aug 12 '25 )

2 Answers

0

answered Aug 11 '25

updated Aug 11 '25

To do this temporarily, you can ignore packets, which treats things as though those packets aren't there at all. Then when you go to Export Specified packets, ignored packets are not exported by default (there's a checkbox.)

https://www.wireshark.org/docs/wsug_h...

Comments

Thanks! With ignoring it works even better, because the selection stays even after having the export dialogue open. For normal selections, one had to re-select afterwards.

User 33722 ( Aug 12 '25 )
0

answered Aug 11 '25

I usually do this by selecting the packets I want to have and export them.

Comments

OKay thanks, so exactly as I described?

User 33722 ( Aug 11 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.