agentleFS
indykiteindykite/skills/indykite-capture-delete-nodes/SKILL.md

indykite-capture-delete-nodes

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

Build the request-body JSON for the IndyKite Capture API batch node delete (`POST /capture/v1/nodes/delete`) - a `nodes` array (1-250 per request) of `{external_id, type}` references, each removing one whole node from the IndyKite Knowledge Graph (IKG); on composite IKGs an optional per-node `location` routes the delete to the right constituent. Use when the user wants to remove entities - "delete these test people from the graph", "remove the car kitt", "prepare a node-delete payload for the Capture API". Produces a ready-to-send JSON file; sending it is optional. Not for removing individual properties (indykite-capture-delete-node-properties), property metadata (indykite-capture-delete-node-property-metadata), relationships (indykite-capture-delete-relationships), or CIQ policy-mediated deletes (indykite-ciq-delete).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not activate this skill to:

    line 27
  2. Very specific:

    remove individual properties (node survives) - use indykite-capture-delete-node-properties.

    line 29
  3. Very specific:

    remove property metadata (property survives) - use indykite-capture-delete-node-property-metadata.

    line 30
  4. Very specific:

    remove relationships - use indykite-capture-delete-relationships.

    line 31
  5. Very specific:

    delete through a CIQ policy + Knowledge Query (parameterized, authorization-gated deletes) - use indykite-ciq-delete.

    line 32
  6. Distinctive:

    If sent, the nodes are gone from the IKG and no longer appear in CIQ query results or KBAC decisions.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

IndyKite Capture - delete nodes

This skill builds the request body for the Capture API's batch node delete endpoint - removing whole nodes from the IndyKite Knowledge Graph (IKG):

POST <API_URL>/capture/v1/nodes/delete

Each entry references one node by (type, external_id) - the same pair that identified it at upsert. 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:

  • remove entities from the IKG - cleanup of test data, offboarding a record, retiring a device;
  • undo a batch ingested with indykite-capture-upsert-nodes.

Do not activate this skill to:

  • remove individual properties (node survives) - use indykite-capture-delete-node-properties;
  • remove property metadata (property survives) - use indykite-capture-delete-node-property-metadata;
  • remove relationships - use indykite-capture-delete-relationships;
  • delete through a CIQ policy + Knowledge Query (parameterized, authorization-gated deletes) - use indykite-ciq-delete.

Prerequisites

  • An IndyKite project with an AppAgent whose credentials are configured for the calling application (Credentials guide).
  • The (type, external_id) pairs of the nodes to remove.

Steps

1. List the nodes to delete

FieldRequiredConstraintsMeaning
external_idyes1-256 charsThe node's caller-owned identifier.
typeyes2-64 charsThe node's type.
locationno2-32 charsComposite IKG only: the node's logical location (an alias_mapping key). Deleting a located node removes both its data node and its global proxy. Omit on a regular IKG.

2. Assemble the request body

One JSON object: { "nodes": [ … ] }, 1-250 entries per request. A ready example: assets/delete-nodes.json.

{
  "nodes": [
    { "external_id": "kitt", "type": "Car" },
    { "external_id": "ryan", "type": "Person" }
  ]
}

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 target list, before sending.

4. Read the results

A 200 returns one result per node, in order: { "results": [ { "id": "gid:…" } ] }. Field shapes and error semantics: references/capture-reference.md.

Outcome

  • A valid { "nodes": [ … ] } delete body exists, each entry a (type, external_id) reference.
  • If sent, the nodes are gone from the IKG and no longer appear in CIQ query results or KBAC decisions.

Files in this skill

  • references/capture-reference.md - field reference, composite-IKG location behavior, batch limits, and error semantics.
  • assets/delete-nodes.json - ready request body removing a Car and a Person.
  • scripts/capture.sh - Bash helper that POSTs a body file to /capture/v1/nodes/delete (host-pinned; --print to 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.