delete the unused sql