The Quran says that whatever verse it abrogates or causes to be forgotten, Allah brings one better or similar, and that Allah effaces what He wills and establishes what He wills. Clear examples are changes in practice that the hadith record. The Prophet ﷺ first prayed towards Jerusalem for about sixteen or seventeen months, and when Allah revealed the command, he turned to the Kaaba. Rulings on strong drink also came in stages, from noting its harm, to forbidding prayer while drunk, to the final prohibition.
Scholars have differed about how far this goes. Early writers used the word broadly, for any later verse that qualifies, specifies or limits an earlier one. Later scholars narrowed it, and the numbers they gave for real cancellation range from some twenty verses to as few as five, and a few scholars say there is none in the Quran. For the great majority of verses, there is no dispute that they stand.
Some classical scholars held that the verse about fighting the idolaters (often called the verse of the sword) cancelled many earlier verses about patience and forgiveness, and extremists and critics sometimes quote that broad view. Many scholars, classical and modern, reject it and hold that those verses still apply in their own circumstances. The question on the verse of the sword explains the context. Abrogation in Islamic law is a limited tool of a gradual revelation, not a way to delete the moral teaching of the Quran.