Delete blank facts

Quote from Jaime Teas on 2023-04-26, 11:43 pmIn 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.
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.

Quote from Richard Otter on 2023-04-27, 3:13 pmThere 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?
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?

Quote from Jaime Teas on 2023-04-27, 6:26 pmI 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 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.

Quote from Tom Holden on 2023-05-08, 10:34 pmI 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.
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:

Quote from Tom Holden on 2023-05-09, 10:05 amI've generalised the script to list empty events of any type and factored in Media tags. WebTags are inapplicable to events.
I've generalised the script to list empty events of any type and factored in Media tags. WebTags are inapplicable to events.
Uploaded files:
Quote from Jaime Teas on 2023-05-15, 4:39 pmThanks again Tom! You've made my life easier 🙂
Thanks again Tom! You've made my life easier 🙂