Body, Mind & Soul — API Reference
    Preparing search index...
    deleteItem: {
        allowedTargetScopes: never[];
        execute: (outcome: any, context: any) => Promise<void>;
    }

    Delete the item currently holding a keyword that owns this trigger.

    This outcome deletes the holder item (the item on an actor carrying the keyword), not the Keyword item itself. It is intended for use with Keyword Event Triggers — when a keyword's Event Trigger fires on a hook, context.keywordHolderItem is the actor-embedded item that carried the keyword, and this outcome removes that holder from the actor's inventory.

    Context requirements: context.keywordHolderItem must be a valid Item document (provided by the dispatch layer for Keyword Event Triggers; not meant for manual authoring outside that path).

    Config is empty (no user-settable options).

    Type Declaration

    • allowedTargetScopes: never[]
    • execute: (outcome: any, context: any) => Promise<void>

    outcome entry shape: { id, type, config }. Config is always empty for this outcome ({}).

    trigger execution context, including context.keywordHolderItem (the Item document to delete) and context.isExecutor (gate: only deletes when true).