delete_object
Delete a specific object from the Gramps tree permanently using its handle or ID. This action is irreversible and leaves dangling references.
Instructions
Permanently delete an object from the tree by handle or gramps_id.
DESTRUCTIVE and irreversible. Deleting an object does not clean up references to it, so this can leave dangling references (e.g. deleting a person still referenced by a family, or an event still listed on a person). Prefer deleting leaf objects, and detach references first where possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Handle or gramps_id of the object to delete. | |
| object_type | Yes | Type to delete: 'person', 'family', 'event', 'place', 'source', 'citation', 'repository', 'media', 'note', 'tag'. |