Leave them on the garden floor and wait. Sometimes it takes five minutes, sometimes considerably longer.
Rotting in Viva Piñata is a timed transformation rather than an action you trigger. Items left on the ground convert into compost or a decayed state after a period, and that period is not fixed — it depends on what the item is and possibly on garden conditions.
Rotten items are not purely a disposal mechanic. Decay feeds back into the garden ecosystem: compost improves soil, and certain piñata species are attracted to or require rotten produce. So deliberately letting things rot is a legitimate strategy rather than neglect.
If nothing appears to be happening, check that the item is actually on the ground rather than in storage, since only items placed in the garden decay. And resist clearing them away immediately — a tidy garden is not always a productive one in this game.