The following statement seems to be "well-known", but I am unable to find a reference in the standard literature. Could someone suggest a reference?
Let $X$ be a separated normal connected Noetherian scheme and $U$ a (nonempty) affine open subset. Then the complement $Y = X \smallsetminus U$ has pure codimension one.