app_delete
Remove a web application using the app_name parameter to specify the app. Designed for managing apps within the Goose App Maker MCP server.
Instructions
Delete an existing web application.
Args:
app_name: Name of the application to delete
Returns:
A dictionary containing the result of the operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_name | Yes |
Implementation Reference
- main.py:164-194 (handler)Handler function for the 'app_delete' tool. Deletes the web application directory specified by app_name using shutil.rmtree. Includes error handling and returns success/error status. Registered as an MCP tool via the @mcp.tool() decorator.@mcp.tool() def app_delete(app_name: str) -> Dict[str, Any]: """ Delete an existing web application. Args: app_name: Name of the application to delete Returns: A dictionary containing the result of the operation """ try: # Find the app directory app_path = os.path.join(APP_DIR, app_name) if not os.path.exists(app_path): return { "success": False, "error": f"App '{app_name}' not found at {app_path}" } # Delete the app directory shutil.rmtree(app_path) return { "success": True, "app_name": app_name, "message": f"App '{app_name}' deleted successfully" } except Exception as e: logger.error(f"Error deleting app: {e}") return {"success": False, "error": f"Failed to delete app: {str(e)}"}