India has urged the Taliban to prevent Afghan soil from being used by anti-India elements.