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

# Delete Bed

> 
### Overview

This API deletes an **IPD bed** of your workspace. The delete is a soft delete: the bed is archived, not removed, and is no longer returned in listings.

Returns `400` with `Bed not found` when the `bed_id` does not exist or belongs to another workspace.



## OpenAPI

````yaml delete /ipd/v1/service/beds/{bed_id}
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/beds/{bed_id}:
    delete:
      tags:
        - IPD API
      summary: Delete Bed
      description: >-

        ### Overview


        This API deletes an **IPD bed** of your workspace. The delete is a soft
        delete: the bed is archived, not removed, and is no longer returned in
        listings.


        Returns `400` with `Bed not found` when the `bed_id` does not exist or
        belongs to another workspace.
      operationId: DeleteIpdBed
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: bed_id
          in: path
          description: Id of the bed to delete.
          required: true
          style: simple
          schema:
            type: string
          example: 66f1c4d2e4b0a1b2c3d4e702
      responses:
        '200':
          description: OK — the bed was archived.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdDeleteResponse'
              example:
                success: true
                data:
                  success: true
        '400':
          description: >-
            Bad Request — the `bed_id` is not a valid id, or the bed was not
            found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
              example:
                success: false
                error: Bed not found
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdDeleteResponse:
      title: IpdDeleteResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            success:
              type: boolean
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.

````

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