Set isSecureArea flag before and after scope delete