Sorry, but don’t know the English name for this.
I have been given a gramps file. The maker has used the citation>attribute/property/characteristic field. Which mostly doubles information that was entered elsewhere too. Is it possible to delete the contents (attribute and value) in one go? [yes I will not work on the original]
The Custom Type cleanup addon could be used for “Clean Slate” operations on specific Types of attributes.
@kku created a SuperTool script to make a GUI Search for Attribute Type (key) and/or Value.
It could be modified to do other things to those Attributes or their values.
You can use the Gram.py Script gramplet.
- Add the addon gramplet “Gram.py Script”
- Add it to your people view
- Paste in the following code
- Press the “Execute” button
begin_changes("Remove all attributes from citations")
count = 0
for citation in citations():
if citation.attribute_list:
citation.attribute_list = []
count += 1
print("Removed attributes from %d citation(s)" % count)
Tried that Douglas, It ends: SyntaxError: invalid syntax. Would language [Dutch] play a part?
No, that is my bad. It should be fixed momentarily. (I’ll let you know when the new version is available).
Gram.py Script addon has been updated. Check for new addons, and select it.
Thank you very much. It worked like a charm. Wish I could learn how to do stuff like that.
My own database could do with some automated maintenance.


