uncite
Detach a citation from an object to fix wrong or superseded evidence. Delete it when orphaned if no other references remain.
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. | |
| 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. |