// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package atproto

// schema: com.atproto.server.deleteAccount

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

// ServerDeleteAccount_Input is the input argument to a com.atproto.server.deleteAccount call.
type ServerDeleteAccount_Input struct {
	Did      string `json:"did" cborgen:"did"`
	Password string `json:"password" cborgen:"password"`
	Token    string `json:"token" cborgen:"token"`
}

// ServerDeleteAccount calls the XRPC method "com.atproto.server.deleteAccount".
func ServerDeleteAccount(ctx context.Context, c util.LexClient, input *ServerDeleteAccount_Input) error {
	if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.deleteAccount", nil, input, nil); err != nil {
		return err
	}

	return nil
}
