Remove Duplicate Cards(移除重复卡片)

AnkiWeb addon 95590040 GitHub repository archived

Removes duplicate cards within decks by keeping either the oldest or newest copy while retaining the oldest due date, with field filtering, multi-deck support, and a reviewable plan before execution.
AI-generated summary; may contain mistakes.

note-managementduplicates

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
63 (👍 59 · 👎 4)
Updated
2024-09-29
Anki versions
unknown
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • The GitHub repository is archived.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2024-09-29
History across monthly snapshots

Loading…

Similar addons

Deck duplication has 1 fork →

Clones a deck and its subdecks in place, retaining media references but not tags, and deletes duplicate notes whose fields are completely identical.

duplicatesdeck-management

50 votes 84% approval 👍 47 · 👎 3 Anki 2.1.66~ Updated 2022-06-11
AnKing Deck Dupe Detector

Detects duplicate cards between a selected deck and an AnKing deck, then opens the browser showing both sets so you can suspend the original cards and unsuspend the AnKing ones.

duplicatesservice-client

1 votes 21% approval 👍 1 · 👎 0 Anki 2.1.46~ Updated 2024-08-31
Deck Deduper

Finds duplicate notes within a deck by comparing a chosen field, then keeps the first note and deletes exact matches after user review, with a backup warning.

duplicates

1 votes 21% approval 👍 1 · 👎 0 Anki 2.1.1~ Updated 2026-01-10
AnkiMaxer

Acts as the local Anki-side helper for a browser extension, finding and unsuspending cards and building filtered Incorrects and Marked review decks while keeping all data local.

sync-integrationschedulingtaggingfiltered-decks

3 votes 21% approval 👍 2 · 👎 1 Anki 2.1.66~ Updated 2026-09-12

Description

This addon will remove duplicate cards in one deck. Choose "keep old cards, remove new cards", it will keep the oldest card in one duplicate, and remove others. Choose "keep new cards, remove old cards", it will keep the newest card in one duplicate, and remove others. In both choices, it will keep the due date of the oldest card. Besides, you can select a specific field to filter duplicate cards.

After installation, you can find this addon in Tools -> Remove Duplicate Cards. When to use this addon, be sure that you selected the right main key( the cards which have the same main key are dupulicated to each other ). Before you click Execute Plan, please check the plan made by this addon to avoid data loss.

以deck为单位移除重复卡片,可选择保留重复卡片中最新的或者最旧的卡片(到期时间会使用最旧的卡片的到期时间),同时也支持使用特定的标签来筛选需要移除的重复卡片。“保留旧卡片“适用于旧卡片已经被手动修改了的场景,”保留新卡片“适用于需要使用新卡片来代替旧卡片的场景。

Please report bugs at github page: https://github.com/quancs/Remove-Duplicate-Cards

If you like this addon, you can give me a star on the github repo Remove-Duplicate-Cards.

change log:

2021/05/06 fix key error in some situation & clear console before making a new plan

2024/09/10 Support lossless deduplication using combination of all keys (Great thanks to https://github.com/petrochenkov for his/her effort for this new function)

2024/09/29 Support multiple decks and speed up update_key_set (Great thanks to https://github.com/kaCVanime for his/her effort for this new function)

README

Remove-Duplicate-Cards

Remove Duplicate Cards is an addon of ANKI.

This addon will remove duplicate cards in one deck. Choose "keep old cards, remove new cards", it will keep the oldest card in one duplicate, and remove others. Choose "keep new cards, remove old cards", it will keep the newest card in one duplicate, and remove others. In both choices, it will keep the due date of the oldest card. Besides, you can select a specific field to filter duplicate cards.

After installation, you can find this addon in Tools -> Remove Duplicate Cards. When to use this addon, be sure that you selected the right main key( the cards which have the same main key are dupulicated to each other ). Before you click Execute Plan, please check the plan made by this addon to avoid data loss.

以deck为单位移除重复卡片,可选择保留重复卡片中最新的或者最旧的卡片(到期时间会使用最旧的卡片的到期时间),同时也支持使用特定的标签来筛选需要移除的重复卡片。“保留旧卡片“适用于旧卡片已经被手动修改了的场景,”保留新卡片“适用于需要使用新卡片来代替旧卡片的场景。目前还无法做到既保留修改了意思的旧卡片,又使用新卡片来代替旧卡片。