---
title: "Cancel a pending upload (transitions to expired, deletes the underlying object)"
method: DELETE
path: "/agents/files/{fileId}/pending"
tags: ["Files"]
---

# Cancel a pending upload (transitions to expired, deletes the underlying object)

`DELETE /agents/files/{fileId}/pending`

## Request

- Base URL: `https://api.mobilerun.ai`
- URL: `https://api.mobilerun.ai/agents/files/{fileId}/pending`
- Auth: HTTP bearer

Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads — refuses to touch `ready` files, so confirmed files are never removed. Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.

## Path parameters

- `fileId` string, uuid, required

## Response `200`

Cancel result

- object
  - `cancelled` boolean, required

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-16** `4ad548c528a8`: 1 info
  - endpoint added
- **2026-06-18** `e61cfb7119bc`: 1 breaking
  - api path removed without deprecation
- **2026-06-09** `00b02e335076`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/droidrun/apis/droidrun-cloud/changes/agents/files/:fileId/pending/delete.md)

---

[API](https://skmtc.dev/droidrun/apis/droidrun-cloud.md) - [All operations](https://skmtc.dev/droidrun/apis/droidrun-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/droidrun/apis/droidrun-cloud/revisions/1cc95586c933?raw)
