How to **remove** (not extract) all attachment from a pdf on linux with some open source software?
Could not find how to do it with qpdf
or pdftk
or even a gui tool.
Edit: Solution pdftk A=oldpdf.pdf cat A output newpdf.pdf
This removes all metadata and also the attachments.
![](https://kbin.life/media/cache/resolve/entry_thumb/05/23/0523cb1e4aba4d1e12f8aa751c380a369ff81793812d6d17b310f1c5ee4798e4.webp)