> ## Documentation Index
> Fetch the complete documentation index at: https://ekacare-quickstart-cleanup.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Case

> This endpoint allows deleting a case using the case ID.



## OpenAPI

````yaml delete /mr/api/v1/cases/{id}
openapi: 3.0.0
info:
  title: Document Upload API
  description: API to pre-sign the URL for uploading documents.
  version: 1.0.0
  license:
    name: Proprietary License
    url: https://developer.eka.care/license
servers:
  - url: https://api.eka.care
    description: Production server
  - url: https://api.dev.eka.care
    description: Development server
security: []
tags:
  - name: Records
    description: API related to records document management.
paths:
  /mr/api/v1/cases/{id}:
    delete:
      tags:
        - Cases
      summary: Delete Case
      description: This endpoint allows deleting a case using the case ID.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: Unique case ID
        - in: header
          name: X-Pt-Id
          required: true
          schema:
            type: string
          description: Patient ID
      responses:
        '204':
          description: Case deleted successfully (no content)
        '401':
          description: Unauthorized – Invalid or missing authentication token
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized access. Please provide a valid token.
                  code:
                    type: string
                    example: UNAUTHORIZED
        '404':
          description: Case not found – The specified case ID does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: No case found with the given ID.
                  code:
                    type: string
                    example: NOT_FOUND
        '500':
          description: Internal server error – Unexpected failure during processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unexpected error occurred while deleting the case.
                  code:
                    type: string
                    example: INTERNAL_SERVER_ERROR
      security:
        - auth: []
components:
  securitySchemes:
    auth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````