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

# Soft delete an item

> Transitions the item to `state: trashed`. Reversible via `POST /items/{id}/restore` until the trash retention window expires (`TRASH_RETENTION_DAYS`, default 60 days; configurable per tenant via `TenantConfig.trash_retention_days`). After the window, the trash purger removes the row permanently.

For immediate hard deletion, use `DELETE /items/{id}/purge` instead — admin-only, no recovery. See [Lifecycle](/concepts/lifecycle).



## OpenAPI

````yaml /openapi.json delete /items/{id}
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /items/{id}:
    delete:
      tags:
        - Items
      summary: Soft delete an item
      description: >-
        Transitions the item to `state: trashed`. Reversible via `POST
        /items/{id}/restore` until the trash retention window expires
        (`TRASH_RETENTION_DAYS`, default 60 days; configurable per tenant via
        `TenantConfig.trash_retention_days`). After the window, the trash purger
        removes the row permanently.


        For immediate hard deletion, use `DELETE /items/{id}/purge` instead —
        admin-only, no recovery. See [Lifecycle](/concepts/lifecycle).
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Item trashed
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - true
                required:
                  - ok
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````