files

Delete a file or folder

Changed on

Delete a file, or a folder and everything in it when recursive is true.

Required permission: files.manage.

post/v1/projects/{project_id}/files/{environment_id}/delete

Request

  • Base URL: https://api.connic.co
  • URL: https://api.connic.co/v1/projects/{project_id}/files/{environment_id}/delete
  • Auth: HTTP bearer

Path parameters

project_idstring uuid required

ID of the project the API key belongs to.

environment_idstring uuid required

Environment ID from GET /environments.

Request body

pathstring required

File path such as invoices/2026/acme.pdf.

recursiveboolean

Required to delete a folder and everything in it.

Response

Successful Response

deletedinteger required

Changes