---
search:
  tags:
    - Files
    - DELETE
seo:
  description: >-
    Reference for the DELETE /v1/sandboxes/{id}/files endpoint in the Carton API
    reference.
sidebar:
  label: DELETE /v1/sandboxes/{id}/files
  badge: DELETE
title: DELETE /v1/sandboxes/{id}/files
type: openapi-operation
---
`DELETE /v1/sandboxes/{id}/files`

**Responses**

- `204` — Deleted, including if the path is already absent
- `400` — Typed error; Retry-After is present when retryable
- `401` — Typed error; Retry-After is present when retryable
- `403` — Typed error; Retry-After is present when retryable
- `404` — Unknown resource
- `409` — Non-empty directory without recursive
- `410` — Sandbox existed and is gone; details contains its reason
- `422` — Typed error; Retry-After is present when retryable
- `429` — Typed error; Retry-After is present when retryable
- `500` — Typed error; Retry-After is present when retryable
- `503` — Typed error; Retry-After is present when retryable
