How do i get rid of items im not supposed to have?

So I just got unbanned and some of the items are still there so how do I get rid of them? do I just trash them?

Yes, trash them. Since the server progress is post moonlord, hacked items are less an issue to progression. Any other stages of the game, I would reset your inventory.