All your contribution can be withdrew without penalty. You have to have roth IRA for the past 5 years.
I did this once.