Skip to content

[Bug] Cannot delete orphan agent due to circular plan dependency in dashboard #51

@quotentiroler

Description

@quotentiroler

Summary

Unable to delete an orphan agent in the Nevermined dashboard (https://app.nevermined.app) due to a circular dependency between agents and plans.

Environment

  • Dashboard: app.nevermined.app (sandbox environment)
  • Account: Hackathon participant

Steps to Reproduce

  1. Create an agent and plan via Payments.createPlan() or CLI
  2. Run the setup again accidentally (or want to clean up a test agent)
  3. Go to dashboard → Agents → Select the orphan agent
  4. Try to unpublish/delete the agent
  5. System says agent has linked plans and cannot be deleted
  6. Go to the plan and try to unlink it from agent:
    • Issue: Cannot save when no plans are selected (Save button is disabled)
  7. Try to delete the plan directly:
    • Issue: Cannot delete plan while it's attached to an agent
  8. Result: Stuck in circular dependency - can't delete either resource

Expected Behavior

One of the following should be possible:

  1. Ability to unlink ALL plans from an agent (Save button should be enabled even with empty selection)
  2. A "Force Delete Agent" option that cascades to plans
  3. Ability to delete a plan even when attached to an agent (with confirmation)

Current Workaround

The only option is to unpublish the agent but leave it in the system, which clutters the dashboard.

Impact

This affects hackathon participants who may have created duplicate agents during testing/development. The inability to clean up orphan resources creates confusion in the dashboard.

Screenshot Context

The "Save" button on the plan linking dialog is disabled when no plans are selected, preventing users from unlinking all plans from an agent.


Hackathon: Autonomous Business Hackathon
Reporter: @quotentiroler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions