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

# Delete users

> Delete one or more users registered in Notifly by user ID, email address, phone number, or LINE user ID.

> [!NOTE]
>
> To delete multiple users at once, send an array of user objects with the same structure. Each request accepts up to 1,000 users.
>
> * Identify users by user ID, email address, phone number, or LINE user ID.
> * Phone numbers must match exactly. For example, `010-1234-1234` and `01012341234` are different.


## OpenAPI

````yaml /en/api-reference/openapi.yaml delete /users
openapi: 3.0.3
info:
  title: Notifly API
  version: 1.0.0
  contact:
    email: contact@notifly.tech
servers:
  - url: https://api.notifly.tech
    description: Notifly API server
security: []
tags:
  - name: catalog
    x-group: Catalogs
paths:
  /users:
    delete:
      summary: delete-users
      operationId: deleteUsers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - projectId
              properties:
                projectId:
                  type: string
                  description: >-
                    The project ID assigned by Notifly. Find it under **Settings
                    > Product & Project > Project Info**.
                userId:
                  type: string
                  description: ID of the user to delete.
                userProperties:
                  type: object
                  description: >-
                    User properties that identify the user to delete. Use an
                    email address, phone number, or LINE user ID.
                  properties:
                    $email:
                      type: string
                      description: Email address of the user to delete.
                    $phone_number:
                      type: string
                      description: Phone number of the user to delete.
                    $line_user_id:
                      type: string
                      description: LINE user ID of the user to delete.
            example:
              projectId: example_project_1234567890abcdef
              userId: user_abc123
              userProperties:
                $email: delete@example.com
                $phone_number: '+821012345678'
      responses:
        '200':
          description: The users were deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: integer
                    description: Number of rows deleted.
              example:
                data: 1
        '400':
          description: The request body format is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientErrorResponse'
        '401':
          description: Authentication failed because the token is invalid or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientErrorResponse'
        '413':
          description: The request exceeds the batch size limit of 1,000 users.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ClientErrorResponse:
      type: object
      properties:
        data:
          type: string
          nullable: true
          description: null on error.
          example: null
        error:
          type: string
          description: Error message
          example: Invalid Authorization Token
    ErrorResponse:
      type: object
      properties:
        data:
          type: string
          nullable: true
          description: null on error.
          example: null
        error:
          type: string
          description: Error message
        projectId:
          type: string
          nullable: true
          description: Project ID, included only for 500 errors.
          example: null
        durationMs:
          type: integer
          nullable: true
          description: Processing time in ms, included only for 500 errors.
          example: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Pass the token issued by `POST /authenticate` as a bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.