generate delete link wih fewer statements