package infra

import "fmt"

// MetabaseDeleteDashboard elimina permanentemente un dashboard de Metabase.
// Para soft-delete, usar MetabaseUpdateDashboard con archived: true.
func MetabaseDeleteDashboard(client MetabaseClient, dashboardID int) error {
	path := fmt.Sprintf("/api/dashboard/%d", dashboardID)

	_, err := metabaseRequest("DELETE", client.BaseURL, client.Token, path, nil)
	if err != nil {
		return fmt.Errorf("metabase delete dashboard %d: %w", dashboardID, err)
	}

	return nil
}
