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

# Remove unreferenced blobs

> Removes blobs that no item references — including items in trash. Run periodically to reclaim storage after item deletion accumulates orphaned blobs. Set `dry_run=true` to preview what would be removed without writing. Admin-only.



## OpenAPI

````yaml /openapi.json post /blobs/cleanup
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /blobs/cleanup:
    post:
      tags:
        - Blobs
      summary: Remove unreferenced blobs
      description: >-
        Removes blobs that no item references — including items in trash. Run
        periodically to reclaim storage after item deletion accumulates orphaned
        blobs. Set `dry_run=true` to preview what would be removed without
        writing. Admin-only.
      parameters:
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            default: 'false'
          required: false
          name: dry_run
          in: query
      responses:
        '200':
          description: Cleanup result
          content:
            application/json:
              schema:
                type: object
                properties:
                  total_blobs:
                    type: number
                  referenced:
                    type: number
                  orphaned:
                    type: number
                  removed:
                    type: number
                  dry_run:
                    type: boolean
                required:
                  - total_blobs
                  - referenced
                  - orphaned
                  - removed
                  - dry_run
        '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_...)

````