Delete brain objects in bulk
delete_graph_objectsDelete EVERY object of one type from the user's graph, however many there are: what to reach for when they ask to clear out a whole category ('delete all my HubSpot contacts') rather than one record. Pass import_id instead to delete everything one import added (its contacts, companies, notes and files, the uploaded file and the import itself); imports are graph objects of type 'import_run'. Pass source 'linkedin_import' instead to delete every connection a LinkedIn export loaded and the people made from them. Deleting one object is delete_graph_object instead. This delete is permanent, and at this scale it is the only kind that helps: a synced portal can be millions of records. Use only when the user explicitly asked for these to go, never on your own initiative, and name one type, import or source per call. In chat this tool deletes nothing: it counts the records and returns what to tell the user, and their click starts the deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | 'linkedin_import': every connection a LinkedIn export import loaded. | |
| import_id | No | The object_id of one import (type 'import_run'), to delete what it added. | |
| object_type | No | The type to clear out, e.g. 'hubspot_contact'. search_graph_objects and the brain's type counts both report types. |