## DeleteAccount `client.accounts.delete(AccountDeleteParamsbody, RequestOptionsoptions?): AccountDeleteResponse` **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: string` - `reason?: string | null` reason is an optional field for the reason for account deletion ### Returns - `AccountDeleteResponse = unknown` ### Example ```typescript import Gitpod from '@gitpod/sdk'; const client = new Gitpod({ bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted }); const account = await client.accounts.delete({ accountId: 'f53d2330-3795-4c5d-a1f3-453121af9c60' }); console.log(account); ``` #### Response ```json {} ```