Skip to content

Add bulk cleanup for unused workflow contracts #3072

Description

@migmartri

Problem

Workflow contracts can become orphaned over time — created but never associated with a workflow, or left behind after their workflows are deleted. There is currently no way to bulk-clean these up; operators must delete them one by one.

Proposed Solution

Add a PurgeUnused RPC and CLI command to bulk-delete workflow contracts that have no associated workflows. The existing List already returns workflow_refs per contract, so clients can preview which contracts are unused before purging.

Implementation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions