dynamic delete query.