Feasibility: eraser/reformatter for USB flash drives?

I sometimes need to transfer files to public machines at my local maker space and I use a USB flash drive to do that. It occurs to me that it's maybe a little insecure for me to put my flash drive in those machines and then put it in my own home machine to keep using it so I was thinking of having a dedicated device that I could stick it into whose only purpose would be to erase/reformat the flash drive. Is that something an Arduino could do or would a Raspberry Pi (Zero?) be a more sensible approach for such a thing? I suppose I'd just want FAT32 every time. I might want to push a couple of buttons to confirm I wish to wipe but other than that, minimum interactivity.

Do a Google search for "Kanguru SS3 with Physical Write Protect Switch".

or would a Raspberry Pi (Zero?) be a more sensible approach for such a thing?

Yes. An Arduino would require a USB host shield or a top end Arduino that could emulate a USB host.