> ## 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.

# Archive patient profile

> **Note:** The patient profile is not deleted permanently — it is only archived.
Archived profiles can still be retrieved using the `arc=true` query parameter in the retrieve API.




## OpenAPI

````yaml delete /profiles/v1/patient/{oid}
openapi: 3.0.3
info:
  title: Patient APIs
  description: Patient Directory CRUD
  version: 1.0.0
servers:
  - url: https://api.eka.care
security: []
paths:
  /profiles/v1/patient/{oid}:
    delete:
      tags:
        - Patient
      summary: Archive patient profile
      description: >
        **Note:** The patient profile is not deleted permanently — it is only
        archived.

        Archived profiles can still be retrieved using the `arc=true` query
        parameter in the retrieve API.
      parameters:
        - in: header
          name: client-id
          required: true
          schema:
            type: string
            example: EC_1431
        - in: path
          name: oid
          required: true
          schema:
            type: string
            example: 18661861868168
        - in: query
          name: arc
          required: false
          schema:
            type: boolean
            example: true
            default: false
      responses:
        '200':
          description: Patient profile archived successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Profile archived successfully
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
      security:
        - bearerAuth: []
components:
  schemas:
    404Error:
      type: object
      properties:
        message:
          type: string
          example: Not found
        code:
          type: string
          example: profile_not_found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````