Sanity Library Reference Docs
    Preparing search index...
    interface DeleteDefinitionArgs {
        cascade?: boolean;
        definition: string;
        grantsFromPath?: string;
        reason?: string;
        version?: number;
    }
    Index

    Properties

    cascade?: boolean

    Abort every non-terminal instance pinned to the targeted versions before deleting. Instances are ONLY aborted — instance documents are never deleted; they stay in the lake as the audit record. Without this flag the delete refuses when such instances exist.

    definition: string

    The definition's name — delete addresses the workflow, not a doc id.

    grantsFromPath?: string

    URL path for grant resolution — see StartInstanceArgs.grantsFromPath.

    reason?: string

    Free-text reason stamped on each cascade-abort history entry.

    version?: number

    Delete only this deployed version. Default: every deployed version.