mix ectomancer.teardown (Ectomancer v1.2.1)

Copy Markdown View Source

Removes Ectomancer configuration from your Phoenix/Ecto project.

This Mix task provides an interactive workflow to undo what mix ectomancer.setup does. It removes the generated MCP module, dependency, configuration entries, and router route.

Usage

mix ectomancer.teardown

Workflow

  1. Detects app name from mix.exs
  2. Prompts for confirmation before making changes
  3. Removes the generated MCP module (if it exists)
  4. Removes Ectomancer dependency from mix.exs
  5. Removes Ectomancer config from config/config.exs
  6. Removes Ectomancer Plug route from router
  7. Prints summary of what was removed

Return Codes

  • 0 - Success (everything cleaned up)
  • 1 - Nothing to clean up
  • 2 - Operation cancelled by user
  • 3 - File operation error