Skip to main content

Delete file

DELETE
/files/{id}

Contract

Parameter
Value
Sectionfiles
AuthenticationCookieAuth
Consumesnot required
Producesapplication/json

Parameters

1 parameter

Name
Location
Required
Type
Description
idpathyesintegerFile ID

Responses

4 responses

Status
Description
Type
200
File deletedno body
400
Invalid IDobject
401
Unauthorizedobject
500
Failed to delete the file from disk or the databaseobject
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }