Delete restricted dialog + tests