I once accidentally left a Swiss Army knife in hand baggage.
I told the security people they could keep it, or give it away.
They put it in a big orange plastic envelope with a security tag on it, & sent it as checked baggage. I had to collect it at the other end.
That was Bangkok, IIRC.