You throw me out when you want to use me and you take me in when you dont want to use me.

Who Am I ?

An anchor