## DeleteAccount `client.Accounts.Delete(ctx, body) (*AccountDeleteResponse, error)` **post** `/gitpod.v1.AccountService/DeleteAccount` Deletes an account permanently. Use this method to: - Remove unused accounts - Clean up test accounts - Complete account deletion requests The account must not be an active member of any organization. ### Examples - Delete account: Permanently removes an account. ```yaml accountId: "f53d2330-3795-4c5d-a1f3-453121af9c60" ``` ### Parameters - `body AccountDeleteParams` - `AccountID param.Field[string]` - `Reason param.Field[string]` reason is an optional field for the reason for account deletion ### Returns - `type AccountDeleteResponse interface{…}` ### Example ```go package main import ( "context" "fmt" "github.com/gitpod-io/gitpod-sdk-go" "github.com/gitpod-io/gitpod-sdk-go/option" ) func main() { client := gitpod.NewClient( option.WithBearerToken("My Bearer Token"), ) account, err := client.Accounts.Delete(context.TODO(), gitpod.AccountDeleteParams{ AccountID: gitpod.F("f53d2330-3795-4c5d-a1f3-453121af9c60"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", account) } ``` #### Response ```json {} ```