# Identifying and Removing completely personal events

**URL:** <https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578>\
**Category:** Help\
**Tags:** regular-expression\
**Created:** [June 23, 2021, 5:46pm UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578 "2021-06-23T17:46:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dino](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dino](https://gramps.discourse.group/u/Dino)\
**Post date:** [June 23, 2021, 5:46pm UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/1 "2021-06-23T17:46:36Z")

</div>

Using Windows 10, Gramps 5.1.3-2  
Having merged some data long ago and now cleaning up, I am finding personal events that were added such as Occupation, Miscellaneous, Travel, etc. that sometimes contain no data. Is there a way to identify and remove completely empty personal events?  
Thanks

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [June 23, 2021, 6:06pm UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/2 "2021-06-23T18:06:09Z")

</div>

Are they truly without data or is just the Description blank? Perhaps they have a date and/or Place. Maybe a Note, Attribute or Source is attached? Maybe it is shared between more than one person, implying a type of association?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [June 23, 2021, 6:11pm UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/3 "2021-06-23T18:11:06Z")

</div>

You could start with the [Remove Unused Objects](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Tools#Remove_Unused_Objects) tool.

Stripping out the objects that aren’t even referenced by anything might trim down your manual search time.

---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [June 23, 2021, 7:19pm UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/4 "2021-06-23T19:19:46Z")

</div>

> [@emyoulation](#):
>
> Are they truly without data or is just the Description blank? Perhaps they have a date and/or Place. Maybe a Note, Attribute or Source is attached? Maybe it is shared between more than one person, implying a type of association?

Good questions!

If you have answered them, you can use event filters:

- number of references = 0 (➡ you don’t have people or families linked to these events)
- number of notes = 0
- number of citations = 0 (you need to make a citation filter which returns the reverse of all citations and call it from an event filter)
- Description = \* (or the reverse for empty description)
- same as citations for places (reverse of all places)

Combine them to obtain filter that matches above questions answers then delete events after a good backup.

---

<div class="post-metadata">

**Author:** ![Dino](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dino](https://gramps.discourse.group/u/Dino)\
**Post date:** [June 25, 2021, 12:10am UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/5 "2021-06-25T00:10:11Z")

</div>

All of the instances I would like to remove have no data (no dates, no places, etc) associated with the personal event. As you suggested, I combined some event filters to report these cases. Where in the filters do I find “Description”? Currently reporting personal events that have a description.  
Thanks,

---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [June 25, 2021, 9:34am UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/6 "2021-06-25T09:34:20Z")

</div>

> [@Dino](#):
>
> Where in the filters do I find “Description”? Currently reporting personal events that have a description.

In General event filters, event with data (or something like that in english) use \* in the last field and check regular expressions, here in french:

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/4/4cd2c887f1ac3bc96acbe90f79ef66ab35162f43.png)

I think you can do the same for events with no place (use \* with regexp cheched in place field)

If it don’t works for places, this one works well:

- in place filters editor define an all places filter
- in event filters editor define a filter which call this all places filter (event matching \<place filter\>) then check “reverse the results” to obtain events without places

Description solution (or any regexp) doesn’t work for the date field, I don’t know any perfect solution for dates, you could try a “from between” impossible dates filter like this, checking “reverse the results” to do not match event with these dates:

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/ab03efa4f7001af713208ba22e65c3b3a0ee7dd8.png)  
Or no days (all week days, at least one rule match, reversed results):  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/8d16de7692eb49a12ea1387af6ae129510593f56.png)  
or a combination of both  
but some unconventional dates could match anyway:  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/0/0f8ea08c6dca04931a6f0f2c98fabfc2676c4654.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [July 25, 2021, 9:34am UTC](https://gramps.discourse.group/t/identifying-and-removing-completely-personal-events/1578/7 "2021-07-25T09:34:27Z")

</div>

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