uncite
Remove a citation from a Gramps object, deleting it if orphaned, to clear citations attached to wrong facts or replaced by the real record.
Instructions
Detach a citation from an object, deleting it if it is left orphaned.
Detaching without deleting is how orphan citations accumulate: the fact the citation supported is gone, but the citation sits in the database still looking like evidence of something. Use this when a citation was attached to the wrong fact, or when a superseded bucket citation is replaced by the real record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Handle or gramps_id of that object. | |
| name | No | With object_type='name' (ref is the person): which of the person's names to detach the citation from. | |
| carry_to | No | Citation (handle or gramps_id) to receive the notes and images only this citation holds, so it can be deleted without losing them. | |
| citation | Yes | Citation handle or gramps_id to remove. | |
| object_type | Yes | Type of the object to detach from. | |
| delete_if_orphan | No | Delete the citation if nothing else references it after detaching. Leave True unless you are keeping it deliberately. A citation that holds the only link to a note or image is kept unless carry_to is given. |