Skip to content

CRD-2.5: Workflow Delete Command #26

@charleslbryant

Description

@charleslbryant

User Story

As an operator, I can safely remove workflows with confirmation

Command

forge-dotnet delete-workflow <id>

Safety Features

Confirmation prompt unless --force flag used

API Integration

DELETE /workflows/{id} endpoint

Acceptance Criteria

  • Shows workflow details before deletion
  • Prompts for confirmation (unless --force)
  • Prevents deletion of active workflows (unless --force)
  • Confirms successful deletion
  • Clear error messages for failures

Tasks Breakdown

  • Extend IWorkflowService with DeleteWorkflowAsync method
  • Extend N8nWorkflowClient with delete endpoint
  • Implement DeleteWorkflowCommand with confirmation logic
  • Add safety checks for active workflows
  • Add --force flag handling
  • Add comprehensive error handling and user feedback
  • Write unit tests for all components including confirmation scenarios
  • Update documentation

Parent Issues

Priority

Medium - Requires confirmation UX

Metadata

Metadata

Assignees

No one assigned

    Labels

    crdChange Request Document - User StoryfutureLower priority - backlog

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions