---
title: "Delete a file"
method: POST
path: "/v1/files/delete"
tags: ["v1", "App Files"]
---

# Delete a file

`POST /v1/files/delete`

## Request

- Base URL: `https://memory.papr.ai`
- URL: `https://memory.papr.ai/v1/files/delete`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Request body

- ObjectRequest
  - `app_id` string, required
  - `object_key` string, required
  - `namespace_id` string, nullable
  - `download` boolean
  - `file_name` string, nullable

## Response `200`

Successful Response

- DeleteResponse
  - `object_key` string, required
  - `deleted` boolean, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/files/delete/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) - [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/papr-ai/apis/papr-memory-api/revisions/6fc381dc78b3?raw)
