Clean up after export of partial database

I created a tree of 217 individuals not related to me, without thinking, within my own tree database. I was smart enough to put all those images, sources, etc, in a separate folder. I plan it as a Christmas Gift. So, I exported an xml of all the people related to the recipient, the planned home person of that tree. Now I can put gramps, this folder and xml on a thumb drive for her. But, I’d like to remove it all from my own database. What will happen if I just remove that folder from my hard drive? Will that cause more problems than it is worth?

GrampsAIO64-5.1.3-2 on Windows 10

You can delete that folder. Then run the check database tool; Gramps will ask you to delete corresponding medias from your db.

But other records (persons, sources, citations…) will still be there if you do nothing to remove them.

An idea before running the check database could be to use/find medias which have file path linked to that directory to help you to find and delete other records of your db linked with these media records (before checking/deleting medias).

Backup everything before :wink:

I’d do following steps:

  1. Check that your exports are working. Put the xml and media folder on the thumb drive, then create a new family tree and import both. You can delete the new family tree if everything works.
  2. Make a backup of your old tree, so you can always go back if you deleted something you wanted to keep.
  3. Remove all people you no longer need. You could use a custom filter e.g. people related to person to help you to select them.
  4. Run the tool “Remove unused objects” to find and remove events, places, notes, etc. which are no longer connected to any persons. Mark them all and delete them (or uncheck some objects if you want to keep e.g. certain places).

Thanks, PLegoux and Mattkmmr. It sounds like that should do the trick. I hope this might help others in the future.


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.