indykite-capture-delete-relationships
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Build the request-body JSON for the IndyKite Capture API batch relationship delete (`POST /capture/v1/relationships/delete`) - a `relationships` array (1-250 per request), each entry identifying a relationship by `source` node, `target` node (each `external_id` + `type`), and relationship `type`; on composite IKGs setting the top-level `use_global_db` field to `true` targets relationships stored in the global constituent. Use when the user wants to disconnect entities in the IndyKite Knowledge Graph (IKG) - "remove the CAN_DRIVE link between ryan and kitt", "unlink these contracts from their vehicles", "prepare a relationship-delete payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. The endpoint nodes survive. Not for deleting nodes (indykite-capture-delete-nodes), removing only relationship properties (indykite-capture-delete-relationship-properties), creating relationships (indykite-capture-upsert-relationships), or CIQ policy-mediated deletes (indykite-ciq-delete).
In this repository25 other files it gives its agents.
- indykite-agent-gatewaySkill
- indykite-audit-logsSkill
- indykite-authzen-evaluationSkill
- indykite-authzen-evaluationsSkill
- indykite-authzen-kbac-policiesSkill
- indykite-authzen-list-policiesSkill
- indykite-authzen-search-actionSkill
- indykite-authzen-search-resourceSkill
- indykite-authzen-search-subjectSkill
- indykite-capture-delete-node-propertiesSkill
- indykite-capture-delete-node-property-metadataSkill
- indykite-capture-delete-nodesSkill
- indykite-capture-delete-relationship-propertiesSkill
- indykite-capture-upsert-nodesSkill
- indykite-capture-upsert-relationshipsSkill
- indykite-ciq-add-propertySkill
- indykite-ciq-add-relationship-propertySkill
- indykite-ciq-create-nodeSkill
- indykite-ciq-create-node-with-linkSkill
- indykite-ciq-create-relationshipSkill
- indykite-ciq-deleteSkill
- indykite-ciq-readSkill
- indykite-ciq-whoamiSkill
- indykite-data-schemaSkill
- indykite-mcp-serverSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Do not activate this skill to:
- Very specific: line 29
delete the nodes themselves - use indykite-capture-delete-nodes.
- Very specific: line 30
remove only a relationship's properties (edge survives) - use indykite-capture-delete-relationship-properties.
- Very specific: line 32
delete through a CIQ policy + Knowledge Query - use indykite-ciq-delete.
- Distinctive: line 80
If sent, those relationships are gone from the IKG - policy conditions and queries that traversed them no longer match - while both …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
IndyKite Capture - delete relationships
This skill builds the request body for the Capture API's batch relationship delete endpoint - removing typed connections between nodes in the IndyKite Knowledge Graph (IKG) while leaving the nodes in place:
POST <API_URL>/capture/v1/relationships/deleteEach entry identifies one relationship the same way it was created: source node, target node, and relationship type. The JSON file is the deliverable, ready to be POSTed by any application.
The MCP server does not currently expose Capture endpoints; the JSON bodies this skill produces are for direct REST use and remain valid if Capture tools are added later.
When to use
Activate this skill when the user wants to:
- disconnect two entities - revoke an
OWNS/CAN_DRIVE/ACCEPTEDedge - while keeping both nodes; - undo a batch created with
indykite-capture-upsert-relationships.
Do not activate this skill to:
- delete the nodes themselves - use
indykite-capture-delete-nodes; - remove only a relationship's properties (edge survives) - use
indykite-capture-delete-relationship-properties; - create relationships - use
indykite-capture-upsert-relationships; - delete through a CIQ policy + Knowledge Query - use
indykite-ciq-delete.
Prerequisites
- An IndyKite project with an AppAgent whose credentials are configured for the calling application (Credentials guide).
- For each relationship: the
sourceandtarget(type,external_id) pairs and the relationshiptype.
Steps
1. List the relationships to delete
| Field | Required | Meaning |
source | yes | { "external_id": …, "type": … } of the outgoing node. |
target | yes | { "external_id": …, "type": … } of the incoming node. |
type | yes | The relationship type to remove between them (max 128 chars). |
2. Assemble the request body
One JSON object: { "relationships": [ … ] }, 1-250 entries per request. On a composite IKG, add top-level "use_global_db": true to delete relationships stored in the global constituent (Data Residency guide); omit it on a regular IKG. A ready example: assets/delete-relationships.json.
{
"relationships": [
{
"source": { "external_id": "ryan", "type": "Person" },
"target": { "external_id": "kitt", "type": "Car" },
"type": "CAN_DRIVE"
}
]
}This file is the deliverable - any HTTP-capable application can send it.
3. Send it (optional)
The endpoint authenticates the calling application (its AppAgent credentials). Which credential goes in which request header is covered by the Credentials guide.
A runnable shell helper builds the authenticated request: scripts/capture.sh — run with --print to preview the curl (host-pinned; token redacted). Deletion is destructive: preview with --print, and confirm the edge list, before sending.
4. Read the results
A 200 returns one result per relationship, in order: { "results": [ { "id": "gid:…" } ] }. Field shapes and error semantics: references/capture-reference.md.
Outcome
- A valid
{ "relationships": [ … ] }delete body exists, each entry namingsource,target, andtype. - If sent, those relationships are gone from the IKG - policy conditions and queries that traversed them no longer match - while both endpoint nodes remain.
Files in this skill
references/capture-reference.md- field reference,use_global_dbbehavior, batch limits, and error semantics.assets/delete-relationships.json- ready request body removing aCAN_DRIVEedge.scripts/capture.sh- Bash helper that POSTs a body file to/capture/v1/relationships/delete(host-pinned;--printto preview).
Agent-specific notes
This skill uses generic markdown instructions and works across all agents listed in the README. The agent needs to be able to write a JSON file; sending it additionally requires HTTP access (curl or any HTTP client).
References
- Capture API reference (OpenAPI)
- Data Residency guide -
use_global_dbon composite IKGs - Credentials guide
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

