Check selection on delete