> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cookiechimp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete account user

> Delete account user by ID



## OpenAPI

````yaml delete /account-users/{id}
openapi: 3.1.0
info:
  title: CookieChimp API
  description: API for CookieChimp.com
  version: 1.0.1
servers:
  - url: https://cookiechimp.com/api/v1
security:
  - authorization: []
paths:
  /account-users/{id}:
    delete:
      tags:
        - Account Users
      summary: Delete account user
      description: Delete account user by ID
      operationId: deleteAccountUser
      parameters:
        - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Account user deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountUser'
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    id:
      name: id
      in: path
      description: ID of the resource
      required: true
      schema:
        type: string
  schemas:
    AccountUser:
      type: object
      allOf:
        - $ref: '#/components/schemas/AccountUserWrite'
      properties:
        id:
          type: string
          description: Unique identifier for the account user
        email:
          type: string
          format: email
          description: Email address of the account user
        created_at:
          type: string
          format: date-time
          description: Date and time when the account user was created
        updated_at:
          type: string
          format: date-time
          description: Date and time when the account user was last updated
      example:
        id: accuser123
        email: admin@example.com
        role: admin
        created_at: '2023-01-05T10:15:30Z'
        updated_at: '2023-01-15T11:20:45Z'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
      example:
        error:
          code: 400
          message: Invalid request
    AccountUserWrite:
      type: object
      properties:
        role:
          type: string
          enum:
            - admin
            - member
          description: Role of the account user
      required:
        - role
  securitySchemes:
    authorization:
      type: http
      scheme: bearer
      description: API token obtained from the login endpoint or the dashboard

````