Just the way you described. The anemone will completely deflate itself, expelling all water and waste inside its body. During this process it will often look dead (or at least unhealthy). This can last as long as 36 hours, but in most cases will only last a few hours.