package infra

import "fmt"

// MetabaseDeleteCard elimina permanentemente una card/pregunta de Metabase.
// Para soft-delete, usar MetabaseUpdateCard con archived: true.
func MetabaseDeleteCard(client MetabaseClient, cardID int) error {
	path := fmt.Sprintf("/api/card/%d", cardID)

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

	return nil
}
