delete leftover sql