Importing a GEDCOM file from Gramps produced over 7500 ‘PERSON, xxxx’ entries. ‘xxxx’ is a four digit number. Deleting these phantom people one at at time is quite time consuming. I cannot find a way to do a mass deletion. Help.
There are very experienced users here who will be able to help you. I know it wasn’t possible in earlier versions but I’m not up to date with the latest version.
File>Tools>Clean Phantom Records
I’m on RM 11. I already tried the Tools>Database Tools>Remove Phantom Records. I don’t know what RM considers a ‘phantom record’. But does nothing to the thousands of my ‘PERSON,’ records.
I’ve even tried the Tools>Create, edit delete groups. Created a new group 'PERSON, ’ and then tried to delete that group with zero results.
If you were able to get the incorrect records in a group, with RM 11 you can delete everyone in the group. It’s under the main Tools menu, Group Tools, Delete everyone in a group
@scw189 What do you mean by phantom records? As I understand in RM a phantom record would be somebody you had deleted ( and probably can’t see anymore ) BUT their info is still recorded in the part of the file most of us don’t know how to access-- occassionally it is an actual person that their number is recorded as ZERO ( if I remember right)…
2nd question is how did you import extra people using a gedcom? have you turned on the RIN # to make sure they are not duplicates?
Sorry just trying to understand you situation-- maybe a screen shot???
I simply used the term ‘phantom’ because these records do not represent real people. These were apparently caused by some type of miss-interpretation from the GEDCOM file that I imported from the Gramps genealogy program.
Some of the ‘phantom’ PERSONs have birth and death dates that are identical such as: “@#DJULIAN@ 5 Feb 1789”. This came from a ‘PERSON’ with no number. Another example is ‘PERSON, 105’ who was also given identical birth and death dates of "bef 27 Oct 1789’. For some reason the year 1789 is favored. Although, ‘PERSON, 7587’ has a different set of identical birth/death dates of “FROM @#DJULIAN@ 27 AUG 1789 TO @#DJULIAN@ 5 AUG 1876”. The RM11 system does allow me to delete these PERSON records; but, only one at a time (with a LOT of mouse movements and ‘clicks’! I think it would take me weeks or months to delete all these thousands of ‘phantom’ records.
As far as I can tell the ‘real’ data came through and I can work it normally on the RM11 system. As far as I can tell, I don’t think any ‘real people’ records are missing. I used to use a Linux Mint operating system for my genealogy work using Roots Magic 7. It ran Ok under Linux using a Windows emulator (Wine program). But, over time and after a number of system updates, bugs started appearing. So, I switched to the only genealogy program that I knew was developed to run under Linux, the ‘Gramps’ program. The Gramps program seemed to function Ok; but, was complicated and not very intuitive. So I recently decided to switch back to Roots Magic 11 which I now run on a new laptop (Windows 11) that I intend to use exclusively for my genealogy work.
I hope is isn’t information overload.
@scw189 Actually you would be surprised how quickly you can delete 7500 people-- I did 3500 people by hand and we are talking a few days max-- only working a few hours a day-- if you do have to go this route PLEASE POST ON HERE that you are going to manual do it and we can explain the one little glitch/ error-- it’s annoying but only takes seconds to fix BUT don’t need to go into that now as it was covered on forum…
Is there any way, you could round up all of these ( or most of them) into a group- you might have to use different criteria and build several groups and then merge all those groups into one- if so you could just delete the whole group – JUST MAKE SURE you are on the right group when you go to Delete
other option is if you could make a group out of your other people in the program then do a drag and drop into a new database-- BUT you MIGHT want to look over this list of possible losses etc on drag and drops
One other thing you also MIGHT try is download RM 7 ( and if you have a key still yet open it) and try importing the gramps file into that— if it works, you can just upgrade it to RM 11-- if not, well you haven’t wasted a lot of time…
BTW-- you don’t have your RM file in a cloud service?
Anyway what ever you do MAKE SURE YOU BACK UP your database
Thanks for the help. I REALLY prefer NOT to do all the deletions manually, it hurts my hand and neck. I thought that the group approach would be the ticket as well. Several times, I made groups of a dozen or so for testing and then tried to delete the group delete. However, my PERSON records still remained. I tried forming a group of ‘PERSON’ records that had no number. I tried forming a group of ‘PERSON’ records that did have a numbers attached; I.e. ‘PERSON, 7426’. No error messages, RM11 just didn’t do the record deleting for some reason.
I understand completely abt the hands and neck as I suffer a lot from that BUT you have to do what you have to do-- so as I understand you can make a group out of the phantoms-- that leaves us one option-- that is to make your group of phantoms you want to get rid of —then do a search for everybody in file and then add to that search BUT NOT group–so my example the group is everybody and when I run the search, I get those new ones I haven’t added to everybody
one you have your list hit saved searches —you can make a group out of the saved searched.. Once you have that which would be everyone except phantoms-- do a drag and drop to a new database
There is possibly, one other option --I don"t normally suggest this as IT IS NOT RECOMMENDED BY ROOTSMAGIC BUT do you know anything abt sqlite? if so, you MIGHT check out
Reason I say that is because your issue reminds me of one from a long time ago
Is there something I’m not understanding about the “Group Tools”? If I’m using the Create, edit, and delete groups tool, I select “New” and I’ve tried the “Simple” option to manually select people, select “Save”, then select "Delete. This does not work as the specific record I selected is still present. I also tried selecting “New” and selecting the “Rules” option. The only thing to work with is the name field. I select “Set rules”, click on the ‘+’ select the rule type. I select “Name” and click Ok. In the “Surname” drop down box, I select “equals” and then fill in my problem surname “PERSON”, then click “Ok”. The system finds 7533 records to delete. I enter a Name for the Group “Phantom” and click “Save”, click “Delete”. The program does not indicate there is a problem nor does it confirm that it’s deleting anything. The right hand pane is set to display “People”. All my "PERSON"s are still there. It appears the system did nothing?! What am I doing wrong?
The delete action in the “Create, edit, and delete groups tool” is used when you want to delete the group (versus the people in the group). It sounds like you that’s what you are selecting. Take a look at the screenshot I posted earlier. The Group tool you want is just below that. It’s labelled “Delete everyone in a group” and it’s highlighted in the screenshot I posted.
Make sure that you make a backup first.
It seems to me that you need to solve what is clearly a garbled process importing data from Gramps via GEDCOM rather than deleting the resulting junk. Either Gramps exported badly or RM imported badly.
Did you check the .LST file that RM logs to, listing errors it encountered during the import?
Did you export GEDCOM 5.5 from Gramps? RM does not support anything later.
Maybe RM’s import is buggy, as was recently discovered for a FTM 2005 database file. Try importing your GEDCOM into RM7 and see if that gives better results. If it does, then upgrade the RM7 database file to the version you want.
This might be too simple but have you tried ‘Count trees’ in the Command Palette to se if the ‘phantom’ records are in a separate tree?
Answer to the ‘Count trees’ question, yes - each phantom PERSON was a separate tree.
However, my problem is solved. Deleting records via the Group process was the answer. I misinterpreted how the tool “Create, edit, and delete groups” functioned. The “Delete everyone in a group” was the answer. It would have been clearer to me if these two tools were combined, create the group, edit the group, then present the options of deleting the group or deleting the records within the group. But, for safety, I can understand why you separated the delete functions.
My core issue is, as I suspected, that the Gramps program is not fully GEDCOM 5.5 compliant. You have to go to their on-line manual where they admit:
Although Gramps is able to import basic genealogical data from GEDCOM through its GEDCOM Import module, much data commonly handled in modern Genealogical software can not be described while staying within the confines of the GEDCOM standard. So, GEDCOM Export from a Gramps Family Tree or Gramps XML is necessarily a lossy operation.
that may NOT clean desired phantoms up . It might,
Its a proven fact that by design RM leaves orphans/phantoms behind. (what & when only the RM dev team could comment but they are unlikely to). Also it might depend on exactly what one is referring to
using a non-aggressive orphan cleaner is generally considered best practice in database management, particularly for complex relational databases like those used in genealogy software (RootsMagic, Family Historian, etc.).
Why a Non-Aggressive Approach is Best Practice
1. Data Preservation & Safety
In genealogy databases, an “unlinked” record is not necessarily corrupted or useless data. You may intentionally have:
-
“Brick wall” research pools: Floating individuals or small family fragments you haven’t linked to your main tree yet.
-
Unassigned Master Sources / Repositories: Master sources, citations, or media items set up in advance before linking them to specific people or events.
-
Research notes and citations: Text entries or evidence attached to a record that hasn’t been merged into a primary lineage.
An aggressive utility that blindly purges everything lacking a parent/spouse link risks permanently wiping out hours of research. A non-aggressive tool leaves standalone entities intact while only sweeping away true relational garbage (e.g., dangling pointers or broken index references).
2. Synchronization Integrity (TreeShare / FamilySearch)
When syncing your database with online servers like Ancestry (via TreeShare) or FamilySearch:
-
Deleting a record locally without severing its sync mapping key can cause sync state mismatches.
-
An aggressive purge might delete a record locally while it still exists on the remote tree, causing the sync engine to repeatedly re-download or flag the item as “missing,” leading to recursive duplicates.
-
Non-aggressive cleanup preserves sync metadata until you deliberately break or reset the link.
3. Database Relational Stability
True relational “orphans” (like a child row in a junction table pointing to a PersonID that no longer exists) cause database bloat and slow down queries. A conservative tool strips out these non-existent foreign key references and rebuilds indexes without touching valid rows in your primary tables (PersonTable, NameTable, EventTable).
When a Non-Aggressive Cleaner Isn’t Enough
While a non-aggressive cleaner is safer for routine maintenance, it can leave behind items you actually want gone:
-
Phantom Spouses & Empty Families: Leftover family containers created during past merges or split links that have no husband, wife, or children attached.
-
Unused Media Files / Citations: Media references or source citations that were detached when a person was deleted.
-
Fragmented Floating Trees: Dozens of 1-person or 2-person “islands” created during bulk imports or TreeShare syncs.
No need for an AI dump, user posted it did not resolve his issue. Others posted other options to fix his issue.
your suggestion to try File>Tools>Clean Phantom Records was correct.
But it was awhile ago I was surprised how much is NOT “cleaned” by that process/tool.
Of course there are other ways to get things “cleaner”. My point was to inform that that the tool is not intended to fix many “phantom” issues as one might expect. (You were likely already aware of that).

