Skip to main content
DELETE
/
projects
/
{project_name}
/
files
Delete a path
curl --request DELETE \
  --url https://api.cloudsquid.io/api/projects/{project_name}/files \
  --header 'X-API-Key: <api-key>'
{
  "errorMessage": "<string>"
}
Destructive operation: Folder deletion is recursive and permanent. The project root (/) cannot be deleted.

What this does

Deletes whatever exists at the given path. If the path is a folder, all files and subfolders within it are deleted recursively. Returns 204 No Content on success with no response body.

Example

curl -X DELETE \
  "https://api.cloudsquid.io/api/projects/my-project/files?path=/invoices/2024/jan.pdf" \
  -H "X-API-Key: YOUR_API_KEY"
Response: 204 No Content (empty body)

Authorizations

X-API-Key
string
header
required

Path Parameters

project_name
string
required

The name of the project

Query Parameters

path
string
required

Absolute path inside the project (cannot be empty or /)

Response

Deleted