Is there away to get rid of boxed Pokémon?

I know we can do surprise trades to kind of offload some dupes etc but they’re the reason I’m in this situation.

I keep getting Pokémon that are advertising some website or something and it’s annoying! I just want some genuine trades. I don’t want to be stuck with these Pokémon out of principle but don’t want to send them onto someone else.