Follow the Leave No Trace dictum: Pack it in, pack it out! If it didn’t originate in the woods, it shouldn’t be left in the woods. Bring a ziplock bag for your used coffee grounds; once you return to civilization, you can either compost the grounds or toss it in the trash.