To release you must set to check out state, not delete them. Same as before, every thing must be in the if.