# Delete a Single Email Message

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /unibox/emails/delete:
    delete:
      summary: Delete a Single Email Message
      deprecated: false
      description: |
        Deletes a single email message within an existing Unibox thread.
        Other messages in the same thread remain unaffected.
      tags:
        - Unibox
        - Unibox
      parameters:
        - name: x-api-key
          in: header
          description: ''
          required: false
          example: Your PlusVibe.ai account's API Key
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - message_id
                - workspace_id
              properties:
                message_id:
                  type: string
                  description: Unique identifier of the email message to delete.
                  examples:
                    - 693adc870fdf6699ae1b41a6
                workspace_id:
                  type: string
                  description: Workspace identifier where the email exists.
                  examples:
                    - 65099a0dd96fae8ab61130c0
              x-apidog-orders:
                - message_id
                - workspace_id
            examples: {}
      responses:
        '200':
          description: Email deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    examples:
                      - success
                x-apidog-orders:
                  - status
          headers: {}
          x-apidog-name: ''
        '400':
          description: Invalid request payload
          headers: {}
          x-apidog-name: ''
        '401':
          description: Unauthorized
          headers: {}
          x-apidog-name: ''
        '404':
          description: Email message not found
          headers: {}
          x-apidog-name: ''
      security: []
      x-apidog-folder: Unibox
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/929054/apis/api-25985492-run
components:
  schemas: {}
  securitySchemes:
    ApiKeyAuth:
      type: apikey
      in: header
      name: x-api-key
      description: |
        API key issued in the PlusVibe dashboard. The server reads it
        from the `x-api-key` header and injects it into the request as
        the `api_key` query parameter, which is why you will see
        `api_key` referenced in validation errors.
    apiKey:
      type: apikey
      in: body
      name: api_key
      description: API key passed in request body
servers:
  - url: https://api.plusvibe.ai/api/v1
    description: Prod Env
security:
  - ApiKeyAuth: []
    x-apidog:
      schemeGroups:
        - id: uS5KiuC4wfZHK42AzOfA_
          schemeIds:
            - ApiKeyAuth
      required: true
      use:
        id: uS5KiuC4wfZHK42AzOfA_
      scopes:
        uS5KiuC4wfZHK42AzOfA_:
          ApiKeyAuth: []

```
