app_delete
Remove a web application from the Goose App Maker MCP server by specifying its name to manage your application portfolio.
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)The main handler function for the 'app_delete' tool. It is registered via the @mcp.tool() decorator. The function deletes the directory of the specified app using shutil.rmtree if it exists, returning success or error status.@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)}"}
- main.py:164-164 (registration)The @mcp.tool() decorator registers the app_delete function as an MCP tool.@mcp.tool()