What am I?

You throw me out when you want to use me, but take me in when you donโ€™t want to use me. What am I?