Added delete by scan