To get someone to stop talking or leave you alone. Use as you would "shut up," "cram it," "go away," etc.
Your friends keep bringing up drama and, exasperated, you say, "Just bag it! I'm tired of your crap!" Or maybe your little brother is invading your personal space and you say, "Bag it, twerp!"