Forum

Forum breadcrumbs - You are here:ForumGeneral: Chit-chatDelete blank facts
Please or Register to create posts and topics.

Delete blank facts

In RM7, is there a way to delete death and burial facts that have no data, no notes, and no sources?

Hopefully, this is a simple script.

There are several Fact properties that may be considered-

citations, media, tasks and sharing.

Should it also delete facts with non-default values for Sort date, Proof, Primary and Private?

I don't think I have any facts with no data or sources that have non-default values for sort date, proof, primary, and private ........ so yes it should delete them all.

I had some time after choir practice to look into your request and came up with this script. As written, it does not delete anything but gives you the RIN of each person having an empty Death or Burial fact that has no Citation (Media and WebTags ignored). You can get a count of how many such events there are. Then look up each person, inspect and manually delete the event. Or you could extend it to batch delete those events.

 

Uploaded files:

I've generalised the script to list empty events of any type and factored in Media tags. WebTags are inapplicable to events.

Uploaded files:
Kevin McLarnon has reacted to this post.
Kevin McLarnon

Thanks again Tom!  You've made my life easier 🙂