How do I stop a character sticking to the ground

So there’s a collision box and a platform. If I can trace down from the player and find the box, but not the platform, destroy the box

platform