## DeleteUser `client.users.deleteUser(UserDeleteUserParamsbody, RequestOptionsoptions?): UserDeleteUserResponse` **post** `/gitpod.v1.UserService/DeleteUser` Deletes a user. If the User comes from an organization's SSO provider, the Account will also be deleted. ### Parameters - `body: UserDeleteUserParams` - `userId?: string` ### Returns - `UserDeleteUserResponse = 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 response = await client.users.deleteUser(); console.log(response); ``` #### Response ```json {} ```