delete region properly